Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Celeste D'Alessandro 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
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 March 4, 2020

Hi @Peter-Dave 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!

Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 4, 2020

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

Celeste D'Alessandro March 5, 2020

Hi @Peter-Dave 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