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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

129 views 3 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you