Add a Trigger to an Operation

To add a trigger to an newly created operation, click Add Trigger next to the operation in the "Operations" dialog.

The "Add Trigger" dialog is displayed.

The following triggers are available:

Manual

Users can select this operation in the Publish Issue action (e.g. via the More menu of an issue).

  • Name: Enter a name for this trigger.
  • Project: Select the allowed projects. If nothing is selected this operation is available in all projects.

    The project will be checked before showing the Publish Issue link.

  • Select the allowed issue types. If nothing is selected this operation is available for all issue types.

    The issue type will be checked before showing the Publish Issue link.

  • Status: Select the allowed statuses. If nothing is selected this operation is available in any status.

    The status will be checked before showing the Publish Issue link

  • JQL: Enter a JQL filter for this operation (e.g. assignee = currentUser()). Only if the current issue matches the filter, the operation can be selected.

    The JQL filter is only checked when listing the selectable operations.

  • Groups: Only members of the selected groups can execute the operation.
  • Roles: Only members of the selected roles can execute the operation.

    When neither groups nor roles are selected, this operation can be triggered by all users.

REST API

This operation can be triggered by a REST call.

The available inputs are the same as for the Manual trigger.

Post Function

This operation can be selected in the Publish Issue Using Operation post function.

  • Name: Enter a name for this trigger.
  • Project: Select the allowed projects. If nothing is selected this operation is available in all projects.

  • Select the allowed issue types. If nothing is selected this operation is available for all issue types.

  • Status: Select the allowed statuses. If nothing is selected this operation is available in any status.

  • JQL: Enter a JQL filter for this operation (e.g. assignee = currentUser()).


In the configuration of the Publish Issue Using Operation post function you can choose to override the filters defined here (Project, Issue Type, Status and JQL).

Event

Automatically execute the operation based on issue events.

  • Name: Enter a name for this trigger.
  • Event Types: Select the event types that should trigger this operation. Leave empty to handle all events.
  • Project: Select the allowed projects. If nothing is selected this operation is available in all projects.

  • Select the allowed issue types. If nothing is selected this operation is available for all issue types.

  • Status: Select the allowed statuses. If nothing is selected this operation is available in any status.

  • JQL: Enter a JQL filter for this operation (e.g. assignee = currentUser()).

  • Ignored Users: The operation will not be executed if triggered by one of the selected users.


If an operation has multiple Event triggers and more than one of them match a given issue event, the operation is still only performed once.