Best practices while using multiple scriptrunner scripts in single transition

harsha nambiar October 22, 2019

What is the best practice if we have multiple functions to be called in jira transition?

Do we create multiple customised post functions or do we do all the changes in one single post function.

Does it affect performance if we use multiple post functions? 

 

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 23, 2019

There is a very tiny overhead in using many scripts, as Jira has to handle each as a separate post-function.

But, you will usually find multiple ones easier to write, understand, and maintain as requirements change.

So, I would look at each requirement and group them by what they are for.  If, for example, you have three related fields to update in a transition for say audit reasons, keep them together in one script.  But if the purposes are unrelated (say one is for audit, one is for a testing update and a third a poke to another system), keep them separate.

Suggest an answer

Log in or Sign up to answer