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?
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.
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