Forums

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

Scriptrunner "Fire and event when condition is true" - Custom field updated

Celeste D'Alessandro
Contributor
March 2, 2020

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 

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
PD Sheehan
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 Leaders.
March 3, 2020

Hi @Celeste D_Alessandro 

 

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.

Celeste D'Alessandro
Contributor
March 4, 2020

Hi @PD Sheehan

Thank you very much for your answer.
But It does not works. Do I mis something? See the attached files.

Thanks in advance!
Regards!

PD Sheehan
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 Leaders.
March 4, 2020

I'd be happy to help further, but I don't see any attached file.

Celeste D'Alessandro
Contributor
March 5, 2020

Hi @PD Sheehan

 

It was a notification issue (my mistake). It works now! Thank you very much!

Regards!

Celeste D'Alessandro 

TAGS
AUG Leaders

Atlassian Community Events