Feature proposal #6537
closedImplement user variable looping
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.
Updated by krileon over 7 years ago
- Precedes Feature proposal #6558: Implement additional CB Activity system actions added
Updated by krileon over 7 years ago
- % 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.
Updated by krileon over 7 years ago
- 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.