Can JIRA notify users when Priority field is changed?

Miki Yuzawa February 11, 2013

Hi,

I am using OnDemand version of JIRA, and I am looking for a way to notify users when Priority field is changed. Is there any?

Thanks,

Miki

3 answers

1 accepted

3 votes
Answer accepted
Udo Brand
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.
February 11, 2013

Changing the priority triggers an update Event. On this Event a notification can be sent. However, this would be the same for all other updates.

As far as I understand your objective you want only inform some users on the change of the priority.

You could do following.

  1. Remove Priority from the edit screen.
  2. define a Change Priority event (see here)
  3. add to each step a transition "change Priority" (the same step as target step) with Priority in the transition screen. Fire the above mentioned event in the Postfunction
  4. Add this event in your Notfification scheme

Then you got what you need.

Cheers,

Udo

Udo Brand
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.
February 11, 2013

I forgot, but you should also use a validator that Priority has to be changed in those transitions. Otherwise there could be a notification without a change of the priority.

Miki Yuzawa February 11, 2013

Hi Udo,

I am glad that there is a way to set a notification.

The challege would be that I need to remove Priority first. In other words, past issues which have priority value will be reset to no value?

Thanks,

Miki

Udo Brand
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.
February 11, 2013

You would remove it from the edit screen only. That means you would not be able to change it via Edit button or inline edit. Please see here how to use different screens for issue operations.

The priority value of old issue will not be changed.

Miki Yuzawa February 11, 2013

I see. Thank you!

Miki Yuzawa February 14, 2013

Hi Udo,

Do you happen to know there is a way to notify JIRA users when an issue is created with a certain priority level? For example, I want notify certain JIRA users when an issue is created with Blocker level in priorty field.

Thanks,

Miki

0 votes
Mizan
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.
February 11, 2013

You will need to create a custom event . Now with help of the behavoiurs plugin you will need to fire the event whenever the priority field is edited . you will need to wite a groovy script which will fire this event refer this java code .

Now when the event is fired you will need to configure this in the notification scheme .

Now the mails will be sent whenever the priority field is edited/changed to specified users.

Hope this helps .

Mizan
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.
February 11, 2013

I am Sorry , I did not see the Ondemand tag . This will only work for Downloaded JIRA .

0 votes
AhmadDanial
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 11, 2013

Hey there, myjura.

In addition to the answer that was provided by Udo, I think that the standard JIRA notification should be able to cater for this. Falling under the Issue Updated event, you can configure it to send notifcation to the respective users as per the following:

https://confluence.atlassian.com/display/JIRA/Creating+a+Notification+Scheme#CreatingaNotificationScheme-Associatinganotificationschemewithaproject

Hope it helps!

Warm regards,

Danial

Miki Yuzawa February 11, 2013

"Issue Updated" event includes all events as far as I understand. Not just Priority field. Thank you for your suggetion, but it won't work for my situation.

Miki

Suggest an answer

Log in or Sign up to answer