Developer Portal for YouTrack and Hub
 

Context

Last modified: 7 November 2024

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.

    note

    Permission Delegation

    If your workflow updates private custom fields or adds new custom field values, YouTrack performs these changes even when the current user does not have the Update Issue Private Fields or the Update Project permissions.

    In this case, the project administrator who implements this workflow is delegating their permission to any user who triggers this workflow rule.

  • All entities that are defined in Requirements.