Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,885
Community Members
 
Community Events
168
Community Groups

Can I make a script run every time a custom field value is changed without creating a ScriptListener

We have a custom filed of single selection type list. We want to run a groovy script which will run if anyone changes its value.

We also don't have option to go with Behavior also because in our script we are fetching profields value. And we are not sure we can access those values when we write the code in behavior. 

1 answer

1 accepted

0 votes
Answer accepted

why don't you want to create a listener? it sounds like exactly the scenario you need a listener for

Because this is a project specific requirement so we don't want to configure it in system level.

Also in consideration of future JIRA scalability & performance (NFR), we don’t want to use web hooks & script listeners for project specific customization in our shared Jira instance   

well, I guess you can make a separate transition with that field on a screen and then add a postfunction to it with the logic you want, but listeners can be project specific as well, if thats your main concern

Can you please guide me in detail how will I make this transition with that field ?

Basically, you remove that field from issue edit screen and then create a transition from any status to any status with a screen that contains this field

1.png

and then add postfunction to this transition

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events