Notification for specific field change

Is it possible to fire notification event on specific custom field edit. So that notification is sent only if custom field xxxxx is edited, but not when other fields are edited. If it is possible please advise how...

3 answers

You can try this as part of your post function (send custom email - from script runner )

changeItems.any {
it.field == 'custom_fieldname' && it.oldstring == "value1" || it.newstring == "value2"
}

0 votes

You need to code to do this, and in the core of Jira.

There's no way for Jira to know what fields you wish to arbitrarily ignore. When an issue is edited, an event is fired, there's nothin in the event system that says "fire different events based on what fields have changed" and you'd need to embed that in the core.

The only way to do this off-the-shelf is to move the edit of fields into the workflow, then you can control what fields are offered to users and what events are fired.

Andris,

You can try Jirassimo for that (https://marketplace.atlassian.com/plugins/net.vacom.jirassimo/server/overview)

Have a look at the https://jirassimo.com/web/examples in section "Example #7, Checking if particular field was changed"

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,884 views 19 22
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