Hi!
I'm learning script runner, so I nedd help. I nedd to fire a event wen a custom field is updated.
The custom field is a user picker type "Referente RD", and when it is update i need to send a notification to the user selected in "Referente RD" field.
I'm using "Script Runner – Script Listener – Fire an event when condition is true" option, but i don't know how to check if the custom field changes or not.
Thanks in advance!
Regards!
Celeste
The little (i) below the script editor is often useful.
In this case, you should see the "chageItems" is available.
Then, you can look to see if any of the changeItems include the field you care about.
changeItems.any{it.field == 'Reference RD'}
That's all.
I'm assuming your notification scheme is set up to pick up the event that you will fire and the recipient is set to the value of 'Reference RD'?
Another potential option for you is the "Send custom email" listener. This would let you control the content of the email.
Thank you very much for your answer.
But It does not works. Do I mis something? See the attached files.
Thanks in advance!
Regards!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd be happy to help further, but I don't see any attached file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It was a notification issue (my mistake). It works now! Thank you very much!
Regards!
Celeste D'Alessandro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.