How can I notify a group when a task is transitioned in the workflow

I have Jira setup so that each of the platforms (windows, mac, Android, iOS) have their own components within the same project. I would like to trgger emails to QA, Dev's and the Scrum masters when tasks are transitioned based only on the component so that they dont end up getting emails from components not relevant to them.

Can I do this with post function and how ?

4 answers

1 accepted

You can do this by using the post function. In your work flow post function file, implement your code and configure with your workflow UI.

Use :

MailServerManager mailsrvmngr = componentAccessor.getMailServerManager();

SMTPMailServer mailserver = mailsrvmngr.getDefaultSMTPMailServer();

Email email = new Email("");



email.setTo(xxx); // Mention the group peoples


Hi Ruban,

Add a custom event

And then set notification scheme as per your preference for that event

Hi Bhushan, let me outline what I need.

I have 3 development teams and 3 QA teams. lets call them dev A, dev B, and dev C. I also have Qa A, Qa B and Qa C.

When Dev A switches a task as being ready for Qa A, I only want to notify Qa A and no one else. How can I do this. Do I need to create separate workflows for each team ?


One way to do this is to write your own listener to look for the component changed and fire an email accordingly.

Do you have to create separate workflows? Not necessarily.

I will try out the above and see how it works. Thank you.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

106 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you