Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do you create a post function on a status that triggers a notification to be sent to a group?

Vikas Puttagunta April 23, 2020

I am currently trying to figure out a way to make a custom post function that is triggered when an issue gets set to specific status on my workflow. When an issue is set to that status, I would like an email notification to go out to a group of pre-defined users. Is this possible with Jira cloud or would I need additional plug-ins or software to make this work?

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 23, 2020

It's a bit "bowl of spaghetti" like here, but for your question, I don't think you need apps or anything.

There's one slight problem with your question, but easily explained.  You say "post function on a status".  Status are not activities, they are a label for "where my issue is in the workflow".  So they can't have post-functions - they're an indicator, not an action.

But to change status, you need a transition.  A transition is an action that moves an issue from one status to another.  They are not quite that simple though, transitions do a load of things when they happen (and also have options for validation, what list of fields to ask the person about, conditions, triggers and, most importantly here, things to do after Jira can be sure that the transition should execute - post-functions)

All transitions have a number of system-mandated post-functions.  One of these is always "fire event X".  You can change the event fired, and even define your own, but an event is always fired.

Now we jump over to notification schemes.  These list every event in your system and ask you to define who gets told when an event happens (and these are "schemes", so you can define them differently by project).

So, an entangled morass of things to do, but the short version is:

  • Tell each transition into a status to fire a relevant event.
  • You may want to think about creating custom events to allow for the groups of events you want to mail people about.
  • Once you've created the custom events, go back into the notification scheme and make sure the right people are mailed about the right events

Suggest an answer

Log in or Sign up to answer