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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.