Configure email notifications for a custom event

Still need help?

The Atlassian Community is here for you.

Ask the community

As a Jira administrator, you can set up a custom event to trigger an email notification for a custom workflow transition.

Custom events are most commonly used to generate notifications for custom workflow transitions. For example, your organization might need you to modify the default workflow by adding a workflow step called QA_Inspection (e.g. between Resolve Issue and Close Issue). You would typically also need to generate an email notification to the QA team whenever an issue progresses to the QA_Inspection step of the workflow.

There are three overall steps to achieve this:

  1. Add a custom event to the system (e.g. Issue Awaiting QA).

  2. Configure the notification scheme to send an email when the custom event is fired.

  3. Configure the workflow transition post function to fire the custom event.

Add a custom event

First, you need to create a custom event. Later, you'll use this to trigger the email. To add a custom event:

  1. Choose the Jira icon (, or ) > Jira settings > System

  2. In the sidebar, under ADVANCED, click Events.

  3. In the Add New Event section, add a name and description for the custom event.

  4. In the Template dropdown, select Generic event.

  5. Click Add.

The custom event must be associated with the generic event email template. A notification scheme configured to notify users of this event will use this email template when sending the notification. It looks very similar to the “Issue updated” event email.

The custom event will appear in the list of events defined within the system. Initially, the event will be marked as inactive, as it is not associated with a notification scheme or workflow post function.

Configure the notification scheme to send email

Now that you have your custom event created, you need to map it to a notification scheme. Notification schemes allow you to reuse your configurations across multiple projects. Learn more about notification schemes.

  1. Select the Jira icon (, or ) > Jira settings > Issues.

  2. In the sidebar, under ISSUE ATTRIBUTES, select Notification schemes.

  3. Select the notification scheme to edit by clicking the notification scheme's name. Or, create a new scheme.

  4. Add the custom event to the scheme by selecting the Add link in the Actions column next to the event's name. Custom events appear at the bottom of the list.

  5. Add the recipients for the custom event as needed and select Add.

Your notification scheme now includes your custom event. But, you still need to add the event into your workflow, so Jira knows when to trigger the email.

Configure a post function to fire the custom event in your workflows

Post functions allow you to automate some actions when people transition issues down their workflow. In this case, we want to use a post function to tell Jira when you want your custom email event to fire, or what transition should trigger the email event.

  1. Select the Jira icon (, or ) > Jira settings > Issues.

  2. In the sidebar, under WORKFLOWS, click Workflows.

  3. Find the workflow that you want to add your event to and select Edit.

  4. While viewing the workflow's diagram, select the transition that should fire the custom email event.

  5. While viewing the transition's details, under Options, select Post functions.

  6. In the table showing the transition's post functions, locate the Fire a… post function. Select the pencil icon (Edit) to edit the post function.

  7. In the Event dropdrown menu, select the custom event you want to fire in this transition.

  8. Select Update.

  9. Publish the changes to your workflow by selecting Publish draft.

You did it! Now, any project that uses this workflow will get your custom email event notification on the transition you elected.


Last modified on Nov 4, 2019

Was this helpful?

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