Configure a custom event notification for a Jira server workflow transition or status

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

Problem

Adding a custom event so that it triggers for a specific workflow transition. Include this custom event in the notification scheme so that a notification will be sent out when the custom event is triggered in the transition's post function.

Scenario

In a project planning process, a proposed idea will need to be reviewed by the project manager. The project manager then decides whether to finalize the planning or if it still needs to be revised. In this case, every time the task is transitioned to the "Revising" status, an email will have to be sent out to notify the project manager group.

Resolution

Create the custom event

  1. Log in as a user with JIRA Administrator permission.
  2. Click > System, find Events under the category Advanced at the left.
  3. Add the Name and Description for the custom event at the Add New Event form at the bottom of the page.

  4. For Template field, select Generic Event
  5. The click Add.


Include the Custom Event in Notification Scheme

  1. You will still need JIRA Administrator permission to configure the Notification Scheme.
  2. Click > Issues, find Notifications Schemes at the left.
  3. Click at the notification scheme's name that you would like to edit.
  4. You will find the custom event Revising created just now in the notification scheme.

  5. Click Add to add the project manager group for the custom event Revising.

Now add the custom event to workflow transition's post function

  1. Click > Issues, find Workflows under the Workflows category at the left.
  2. Click the Edit link for the workflow you need to configure.
  3. Select the Revise transition then select Post Functions in the dialog at the right.

  4. Hover over the post function "Fire a Generic Event event that can be processed by the listeners." then click the pencil icon to edit the post function. Change the Generic Event to Revising Event then Update, then publish the workflow.

Description

Adding a custom event so that it triggers for a specific workflow transition. Include this custom field in the notification scheme so that a notification will be sent out when the custom event is triggered in the transition's post function.

ProductJira
PlatformServer
Last modified on Jul 8, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.