Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

  • Creating a script 
  • Connecting a script with a workflow 
  • Create a test version of script
  • Starting a test version 
  • Test Settings 
  • Scripts Import / Export 



The Groovy Templates feature allows you to create your own personalized scripts. Thanks to them,  you have a lot of options about adding individual dependencies to a workflow.

Created scripts can apply to conditionals, validators or post functions.


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 you 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, 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 you can enter the script.


After the editing is complete, decide the script should be:
a) activated now - click Save and Activate,
b) tested first - click Save

Connecting a script with a workflow:

The activated script should be connected to Workflow.
To do this, go to the Workflows tab, then edit the selected Workflow. At this point, select the Transition edition whose script operation should apply to and select conditions or validators or post functions.

After go to the list of possible to add functions, select from the list: Groovy Template Conditions / Validators / Post functions. 
Next from the list of created scripts, select the one to be added.


Create a test version of script: 

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 you should:

  • click New version,
  • describe the new version (eg 1.1),
  • make changes to the script,
  • click Save,

or

  • click New version,
  • make changes to the script,
  • click Save as new 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, 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, 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 

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 










  • No labels