Forums

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

Sending a notification when custom field value changes setup through script runner

naveen arroju
Contributor
November 25, 2021

Hi All,

sending a notification when custom field value changes.
One notification when a custom field is value changed and then get only this action need to get email notification not more of this email.

example: custom field name laptop and values Acer, Dell, Lenovo

when the change to Acer to dell then the dell team will get an email notification. after the ticket is updated assignee or any other issue updated notification is restricted to the dell team.

2 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Daniel Yelamos [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 10, 2017

Hi Maya. 

If it is a static type error, does it mean that you haven't actually run it yet? Do you mean that you are getting one of the small red crosses in your code?

If so, that could mean that it isn't broken at all. Could you save the script and run it?

Cheers

DYelamos

0 votes
Steven F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 8, 2017

Please indicate where both of the scripts are located. It's likely that one of the locations has InvalidInputException already within scope, whereas the location you're trying to use it in now does NOT have it in scope.

Maya_Chase
November 9, 2017

The other script is in a post-function on a Resolve transition, whereas this one is in a post-function on a Create. So yes, it could be that there's something already in the other workflow that allows it to work. So how do I bring this one in scope?

Steven F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 9, 2017

Perhaps just trying defining the variable? 

def invalidInputException
if(name='aCoolName'){
invalidInputException = new InvalidInputException("Please provide the full legal name")
}
TAGS
AUG Leaders

Atlassian Community Events