Project

General

Profile

Actions

Feature proposal #6537

closed

Implement user variable looping

Added by krileon about 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
10 March 2017
Due date:
% Done:

100%

Estimated time:

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.


Related issues 1 (0 open1 closed)

Precedes CB Auto Actions - Feature proposal #6558: Implement additional CB Activity system actionsClosedkrileon13 March 2017

Actions
Actions #1

Updated by krileon about 7 years ago

Actions #2

Updated by krileon over 6 years ago

  • Target version changed from 755 to 7.0.0
Actions #3

Updated by krileon over 6 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.

Actions #4

Updated by krileon over 6 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.

Actions #5

Updated by krileon over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF