How do I catch the event when a field's value changes during Jira create issue?

Todd Shoenfelt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 12, 2017

Hi,

We have a Groovy script Behavior that runs when the Create screen loads.  It populates a pulldown menu,

def field = getFieldByName("Field Name")

with values queried from an external web service,

field.setFieldOptions(fieldOptions) 

I need to detect when the selected pulldown menu's value changes and execute another external web service query.  Can that be done with the existing Behavior on the Create screen before submitted the ticket?

1 answer

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 19, 2023

Hi @Todd Shoenfelt 

You could do that with scriptrunner no problem. The getFieldChanged doesn't work? Please refer to this documentation https://docs.adaptavist.com/sr4js/latest/features/behaviours/api-quick-reference

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events