Get notification only from priority change

Hi All,

one of my project lead asked for getting email notifcations when a user change the priority on an issue in his project.

Now only the Current assignees get email from Issue Updated event.

I know that we can just add the project lead to the Issue Updated event but can it be made that he gets email ONLY about changing the Priority fields? So other updates (e.g. custom fields, etc.) would not trigger email for him?

Can it be done?



1 answer

1 accepted

0 votes
Accepted answer

This can be done by a listener , you will have to create a listener( plugin) which will check the change in an issue, if the priority has changed then it will trigger an event then based on this even send an email to the project lead .

There is a similar script available with the script runner plugin but it sends email on some condition .

try adding condition for project too . i dont know the correct sysntax but something like


Hi Mizan,

yes, I found the built-in script "Send a custom email" but here cannot be restrict the project:

issue.priority?.name == 'Major' && changeItems.any {

It would trigger emails from all the 200 projects we have.

Thank you!

I instered an email template:

     [ ${baseurl}/browse/${issue.getKey()}?page=${tabpanel-all} ]

$i18n.getText("template.change.updated", $remoteUser.fullName, $issue.getKey())




When I made a preview, I got the following error message: groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed: GStringTemplateScript4.groovy: 6: illegal string body character after dollar sign; solution: either escape a literal dollar sign "\$5" or bracket the value expression "${5}" @ line 6, column 73. $remoteUser.fullName, $issue.getKey()) ^ 1 error

What I don't understand because I don't really know this scripting.

Where have you inserted this template ? It is very different from the template shown in the docs

You are mixing things: that code you pasted is velocity template, GStringTemplate is other beast, as explained in

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Agile

How Scrum works? It starts with training and education

To answer “How scrum works,” most of the teams I've worked with first addressed the question: “where to start?”  That question applies to both implementation and improvements on the Scrum framew...

167 views 3 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