YouTrack Standalone 2017.4 Help

Context

Context contains a number of entities which may be useful during a 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 rule type (see a table below). If several issues become objects at the same time, rules are executed for each issue separately in no specific order.
  • A currentUser, who is a subject of a current rule. It also varies depending on rule type (see a table below). Note that the change initiator is inherited. If the 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 typeIssueUser
On-changeThe issue which is changedThe user who initiated this change
ScheduledThe issue which matches the search criteriaA dedicated Workflow User (a system user with full set of permissions)
ActionThe issue on which a corresponding command is executedThe user who executed a command
State machine - instant actionsThe issue where the controlled field is changedThe user who changed the value of the controlled field
State machine - 'after' actionsThe issue where the value of the controlled field is equal to the value specified for the actionA dedicated Workflow User (a system user with full set of permissions)
Last modified: 12 December 2017