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

This widget could not be displayed.

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.

This widget could not be displayed.

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 Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

1,058 views 5 11
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