Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

script runner validation condition on listener mail condition

Aurelie Geoffroy July 24, 2019

Hi community.

 

I cannot find how I can send a mail to xxx@xxx.com when the customfield A is changed.

I just find that code: cfValues['Some Custom Field'] != 'Some Value'  

 

Some value I want to replace if (when customfield has changed)

Thank you

1 answer

0 votes
Aurelie Geoffroy July 25, 2019

 

(its work for An2 An3 ...) not supposed 

 

import com.atlassian.jira.component.ComponentAccessor

def customFieldManager = ComponentAccessor.getCustomFieldManager()
def customField = customFieldManager.getCustomFieldObjectByName("AN 1")

cfValues['AN 1'] != customField

Suggest an answer

Log in or Sign up to answer