Excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Creating post
functionsfunction template
- Log in as a user with the JIRA Administrators global permission.
Choose > > Issues. Select Workflows > Post functions to Function Templates to open the Post functions Templates page.
Tip: Use Keyboard shortcut: g + g + start typing post function templatestyping Post Function Templates - Click the Add Template button. Dialog displays the Template's Name and Description fields.
- Fill in the fields and confirm with Add button
Note that newly created template is inactive as default
Adding Post functions to Post function Template
- To define your template you need to add desired post functions.
Select Add Post function button to open the list of available post functions to choose from. There is a list of them apart from the standard post functions that are always assigned to the workflow. Please note that Workflow PowerBox plugin delivers 15+ post functions. Click on the chosen one and confirm it with the Add button.
SCREEN SHOT - You can always toggle the logic control order of the post functions execution by using arrows (move up/move down) or delete desired post function. Some post functions are editable, in that case Edit button will be active.
Editing post functions template
- Log in as a user with the JIRA Administrators global permission.
- Choose Choose > Issues. Select Workflows > Post functions Templates to open the Condition Post Function Templates page.
Tip: Use Keyboard shortcut: g + g + start typing post function templates - Click the Edit Template button.
Executing 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 Keyboard shortcut: g + g + start typing workflows - As soon as you will have all workflows listed you have to select one of them and click Edit button in Operations section. You will be redirected to Edit Worklow Workflow page where you can see all the transitions that take place
- Click desired transition and than choose which of the worfklow elements you want to extend (conditions, validator, post functions) with a predefined template by clicking then choose Post Functions tab and click Add post function
- From the list of conditions choose Validator post function choose Run Post Function Templates option and confirm with Add button
- Choose desired earlier created pre-defined template 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 template
Once your template is active you can always disabled it.
- Log in as a user with the JIRA Administrators global permission.
- Choose > > Issues. Select Workflows > Post functions Templates to open the Condition Post Function Templates page.
Tip: Use Keyboard shortcut: g + g + start typing post functions templates - Click the Edit Template button.
- Click Disable button
Post Function templates options
Workflow PowerBox lets you control some not normal situation on plugin level. You can set
To change Post Function Templates settings click cog icon located next to "Import" option:
There are two options available. One is reaction on executing disabled template, second one describes plugin behaviour when non-existing template (e.g. deleted one) it called in workflow.
You can choose between two options each case:
- Do nothing - let your workflow transition complete.
- Throw exception - stop your workflow transition and log error to JIRA log file.
Importing templates
- Log in as a user with the JIRA Administrators global permission.
Choose Choose > Issues. Select Workflows > Post functions Templates to open the Condition Post Function Templates page.
Tip: Use Keyboard shortcut: g + g + start typing post functions templates - Click the Import button.
- Choose XML file you want to upload and than accept your choice with Import button.
Exporting templates
Already created templates can be exported any time to XML file to your drive. In order to do so:
- Log in as a user with the JIRA Administrators global permission.
- Choose Choose > Issues. Select Workflows > Post functions Templates to open the Condition Post Function Templates page.
Tip: Use Keyboard shortcut: g + g + start typing post functions templates - Select template that you want to be exported and click Edit in Operations section
- As soon as you choose Export button, your template will be downloaded.