Script runner - Fire an event when condition is true - no email for project role members

Hi there,

I've created a post function "Fire an event when condition is true" for issues with major priority. The fired event is part of my notification scheme and emails should be sent to the project lead and all the people in a certain project role. But only the project lead gets an email. How can I send the emails to the role members with this function? Or is it a bug in Script runner?




2 answers

Are u trying to send the email with the scirpt post function or with JIRA event notification?

In case you are using script post function (send email) , try to use the project role ID instead of NAME

As mentioned the post function fires the event (called Blocker). Blocker is part of the notification scheme and email should be send to the project lead und the role "Product Owner". But the role members don't get that email.

It's too early to say it's a bug. What troubleshooting have you done so far? Here are some points I think you can check:

  • How sure are you that the condition has passed? The email being sent to the Project lead maybe because of other events in the post-function. Check if there are others.
  • Where is the Event positioned in your post-function? It should be on the bottom most (after several important post-functions)
  • What is the template being used by your Event? Is it valid?

Let us know so we can advise more if we can.

Thanx Gabrielle, - the conditon is true: the email to the project lead was sent. Further I activated logging and can see the result in the catalina.out. - the event is positioned at the bottom of all post function - the template I've tried is the "Issue created" template which is valid. I did some further investigations: I've put the project lead, a project role and a group into the notification scheme for this event. Only one mail was sent to one of the group member. Strange.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,116 views 4 9
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