...
The Groovy Templates feature allows you to create your own personalized scripts. Thanks to them, a administrator has you have a lot of options about adding individual dependencies to a workflow.
...
In addition, an important function of the app is the possibility of creating new versions of scripts, which before activation can be independently and non-invasively tested in a selected and limited environment.
This means that a administrator doesnyou don't have to overwrite a script and test its operation on all projects that use a given workflow, and instead of that he can create a separate, additional test version that will only work on a project, user group or labels selected by him.
Creating a script:
Log in as a user with the Jira Administrators global permission.
To go to a script creation screen, enter the click and choose Issues.
In the left navigation bar in the Workflow section, select Groovy Templates.
Script creation starts with Add Script, then choose its type and set a name.
In the next step there will be a console, where a administrator you can enter the script.
After the editing is complete, a administrator decide the script should be:
a) activated now - click Save and Activate,
b) tested first - click Save.
Connecting a script with a workflow:
...
Create a test version of script:
Administrators You have the option of creating next versions of scripts and testing them on only the projects, group of users or labels they choose.
To start testing the new version of the scripts a administrator you should:
- click next to the selected script, go to New version,
- describe the new version (eg 1.1),
- make changes to the script,
- press click Save,
or
- next to the selected script, go to click New version,
- make changes to the script,
- press click Save as new version version
- describe the new version (eg 1.1).
Starting a test version:
To perform the test:
- click Version button of the selected script to show all its created versions,
- with the version to be tested, press click Test,
- go to Test Settings to set the dependencies of the tested transitions.
In the selected script only one version can be active and only one can be tested.
The active and tested version is always at the top of the list.
Test Settings:
Thanks to this function, it is possible to set parameters (project, group of users and labels), for which scripts tests will run.
Test Settings work globally, which means that they apply to all tests performed for all scripts. However, admins you can edit them at any time.
To be able to run tests on a larger database, you can use the function of Any of the following, which allows you to run tests in all combinations of given data.
After adding all parameters click Save.
Scripts Import / Export
The administrator You can additionally import external scripts to the application and export all those out of the app.
How to import scripts:
- click Import scripts
- choose a file
- click Import
How to export scripts:
- click
- click Export