I have a rules action component that I use in VBO to flag users with a punish flag. The punish flag has a reason long text field.
In rules, the component is an action set that consists of the action Flag a user. However, the Flag a user action does not include an option to set the value of any of the flagging fields (in this case, reason).
I want to somehow set the reason field when I evaluate this component. My first thought was to create another rule that triggers on the event When a user is flagged, but this does not work in my case because the flag can be triggered multiple ways, and the value of reason should be different in each case. (This was suggested here.)
So, I want to somehow access the flagging that is created by the Flag a user action and then change the value of reason, but I don't see any obvious way of doing that in rules other than making a loop that goes through all the flaggings on the site and looks for the one that affects the relevant user.
Is there a clean way to grab a flagging set by a rules component and then set the value of a field for that flagging?