Feature proposal #6537
closed
Implement user variable looping
Added by krileon over 7 years ago.
Updated about 7 years ago.
Description
If User is set to Variable 1 and Variable 1 is an array of user objects it should loop the action for each user in that array. Additionally implement support for a variable function. So for example set it to Variable 1 and call function ->user() and use the results as the user (again, if array loop it). This ideally should allow notification usages in GJ and other plugins without those plugins having to hardcode any notification behavior and simply just need a trigger with reasonable variables.
- Target version changed from 755 to 7.0.0
- % Done changed from 0 to 50
When using Manually for User if the variable is an array of user objects it'll loop the action through each user.
Needs support for object function calling so for example you can tell it to run a function on the specified variable and loop the resulting array. The alternative is any triggers needing this should just include the array correctly.
- Status changed from Assigned to Resolved
- % Done changed from 50 to 100
This will be left at just handling an array of users. Triggers will need to include that array as needed. This means in next release of GJ the triggers will need to be improved to include a list of users that should be notified.
- Status changed from Resolved to Closed
Also available in: Atom
PDF