script runner question for custom fields - notification issue

We have a custom field called 'Customer Impact'. Please note the single space between 'Customer' and 'Impact'. When this field is set, I would like to send an email to customer support organization. If you have any thoughts, please suggest. Hoping to use "script runner".

I went ahead and added a new event as follows :

system -> events -> Add New Event
Name : Informed Support
Description : Customer Impact field updated
Template : Issue updated

How do I associate this event with the workflow ?
Basically, how to generate notification by watching for the status of a custom field. ?

My another question is - in our jira project screen, we have a checkbox for doc required (yes/no). If checkbox is checked, I would like to be able to send a notification to the doc team.

Thanks Jamie

2 answers

1 accepted

1 vote

If you're not sure about your condition, test the different clauses separately. If you just want to check the text field has a value use:

cfValues['Customer Impact']

I think that is all you need.


thanks Jamie. That works.

I chose "Send a custom email" listener, with the condition string to be -

changeItems.any {it.get('field')=='customfield_10301'} && cfValues['customfield_10301'] == 'true'

Email Template = $issue

Subject Template = customer escalation for $issue

I don't see any email coming along.. 10301 is the id for  custom field "Customer Impact" This is a text entry box where you can type in, a paragraph. So, value == "true" is reasonable ?

any clues please ?

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 May 21, 2018 in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

1,002 views 7 17
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