Hello all,
Good Morning. Hope you all are doing well :)
What is the best way/practice to manage the scripts conditions, validators, and post functions in Jira?
Whether we should apply the inline scripts to workflow condition, validator, and post function directly or add it to server <JIRA_HOME>/scripts directory.
As the script runner has been provided a new script editor function using which we can directly edit the script which we have added to the scripts directory of the server.
If you say, add it to server <JIRA_HOME>/scripts directory then what will be naming convention we should use?
Any suggestions will be appreciated!!
This is almost exactly what I do. I moved to scripts on disk very early on so I could store them in source control (that was before we had Bitbucket, but that's where I store them now)
I sometimes use a fourth (complex) naming convention which includes an indicator of the purpose of the script and/or the project it was written for (along with a set of global scripts)
Thank you @Peter-Dave Sheehan and @Nic Brough -Adaptavist- for your suggestions and sharing the experience.
@Peter-Dave Sheehan yes, we are also thinking the same to put all the scripts to the server, and then using bitbucket and bamboo automation the respective scripts will be added/updated automatically.