Context
Context contains several entities which may be useful during rule execution. Context is passed as an argument to action
, onEnter
and onExit
functions. It contains:
An
issue
, which is an object of a current rule. Its origin varies depending on the rule type (see table below). If several issues become objects simultaneously, rules are executed for each issue separately in no specific order.A
currentUser
, who is a subject of the current rule. It also varies depending on the rule type (see table below).Note that the change initiator is inherited. If execution of a scheduled rule triggers an on-change rule, the
currentUser
for the on-change rule is inherited from the scheduled rule.All entities that are defined in Requirements.
Rule type | Issue | User |
---|---|---|
On-change | The issue which is changed | The user who initiated this change |
Scheduled | The issue which matches the search criteria | A dedicated Workflow User (a system user with a full set of permissions) |
Action | The issue on which a corresponding command is executed | The user who executed the command |
State machine - instant actions | The issue where the controlled field is changed | The user who changed the value of the controlled field |
State machine - | The issue where the value of the controlled field is equal to the value specified for the action | A dedicated Workflow User (a system user with a full set of permissions) |