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

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
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

860 views 3 9
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