Creating a post function template
- Log in as a user with the Jira Administrators global permission.
Choose > Issues. Select Workflows > Post Function Templates to open the Post functions Templates page.
Tip: Use a Keyboard shortcut: g + g + start typing Post Function Templates - Click the Add Template button. The dialog displays the Template's Name and Description fields.
- Fill in the fields and confirm with the Add button.
Note that a newly created template is inactive by default.
Contents:
Adding Post functions to a Post function Template
- In order to define your template, you need to add the post functions you've chosen.
Select the Add Post function button to open the list of available post functions to choose from. Apart from the standard post functions which are always assigned to the workflow, there are some additional ones. Please note that the Workflow PowerBox plugin delivers 15+ post functions. Click on the chosen one and confirm it with the Add button. - You can always check the order of the post functions execution by using arrows (move up/move down) or delete a selected post function. Some post functions are editable.
Editing a post function template
- Log in as a user with the Jira Administrators global permission.
- Choose
Tip: Use a Keyboard shortcut: g + g + start typing post function templates > Issues. Select Workflows > Post functions Templates to open the Post Function Templates page. - Click the Edit Template button.
Executing a post function template
Executing a template means nothing more than adding a template to the chosen transition in a workflow. In order to do so you have to:
- Log in as a user with the Jira Administrators global permission.
Choose > Issues. Select Workflows > Workflows to open the workflows page.
Tip: Use a Keyboard shortcut: g + g + start typing workflows. - As soon as you have all workflows listed, you have to select one of them and click the Edit button in the Operations section. You will be redirected to the Edit Workflow page where you can see all the transitions which take place.
- Click on a selected transition, then choose the Post Functions tab and click Add post function.
- From the list of post, functions choose the Run Post Function Templates option and confirm it with the Add button.
- Choose any previously created predefined template you want and add those parameters to your post function.
- Your template will be added to the list of post functions that will be run for this particular transition.
Disabling templates
Once your template is active you can always disable it.
- Log in as a user with the JIRA Administrators global permission.
- Choose > Issues. Select Workflows > Post functions Templates to open the Post Function Templates page.
Tip: Use a Keyboard shortcut: g + g + start typing post functions templates. - Click the Edit Template button.
- Click the Disable button.
Post function templates options
Workflow PowerBox allows you to control some not normal situations on the plugin level.
To change the Post Function Templates settings click the cog icon located next to the "Import" option:
There are two options available. One is the reaction on executing a disabled template, the second one describes plugin behavior when a non-existing template (e.g. a deleted one) is called in a workflow.
You can choose between two options in each case:
- Do nothing - your workflow transition will be executed.
- Throw exception - stop your workflow transition and log an error to the Jira log file.
Importing templates
- Log in as a user with the Jira Administrators global permission.
Choose > Issues. Select Workflows > Post functions Templates to open the Post Function Templates page.
Tip: Use a Keyboard shortcut: g + g + start typing post functions templates. - Click the Import button.
- Choose the XML file you want to upload and then accept your choice with the Import button.
Exporting templates
Already created templates can be exported any time to the XML file to your drive. In order to do so:
- Log in as a user with the Jira Administrators global permission.
- Choose
Tip: Use a Keyboard shortcut: g + g + start typing post functions templates. > Issues. Select Workflows > Post functions Templates to open the Post Function Templates page. - Select the template you want to export and click Edit in the Operations section.
- As soon as you choose the Export button, your template will be downloaded.