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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

11,882 views 14 13
Join discussion

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