Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Excerpt

Table of Contents
maxLevel2
minLevel2
stylesquare

Creating post functions

Creating a post function template

  1. Log in as a user with the 
JIRA  >
  1. Jira Administrators global permission.
    Choose 
Image Removed
  1. Image Added > Issues. Select Workflows > Post
functions to
  1. Function Templates to open the Post functions Templates page.
    (info) Tip:
Use 
  1. Use a Keyboard shortcutg + g + start
typing post function templates
  1. typing Post Function Templates
  2. Click the Add Template button.
 Dialog
  1. The dialog displays the Template's Name and Description fields. 
Image Removed
  1. Image Added
  2. Fill in the fields and confirm
with 
  1. with the Add button.
    (info) Note that a newly created template is inactive
as default
  1. by default.



Panel
borderColor#5db037
titleColorwhite
borderWidth1
titleBGColor#5db037
titleContents:


Excerpt

Table of Contents
maxLevel2
minLevel2
indent25px
stylesquare




Adding Post functions to a Post function Template

  1. To In order to define your template, you need to add desired the post functions you've chosen
    Select the Add Post function button to open the list of available post functions to choose from. There is a list of them apart  Apart from the standard post functions that 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.
    SCREEN SHOTImage Added
  2. You can always toggle the logic check the order of the post functions execution by using arrows (move up/move down) or delete desired a selected post function. Some post functions are editable, in that case Edit button will be active.


Editing a post

functions

function template

  1. Log in as a user with the JIRA Jira Administrators global permission.
  2. Choose Image RemovedChoose Image Added  > Issues. Select Workflows > Post functions Templates to open the Condition Post Function Templates page.
    (info) Tip: Use Use a Keyboard shortcutg + g + start typing post function templates
  3. 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:

  1. Log in as a user with the JIRA Jira Administrators global permission.
    Choose  > Issues. Select Workflows > Workflows to open the workflows page.
    (info) Tip: Use Use a Keyboard shortcutg + g + start typing workflows.
  2. As soon as you will have all workflows listed, you have to select one of them and click click the Edit button in the Operations section. You will be redirected to the Edit Worklow Workflow page where you can see all the transitions that which take place.
  3. 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 Add post function
    Image Removedon a selected transition, then choose the Post Functions tab and click Add post function.
  4. From the list of conditions choose Validator post functions choose the Run Post Function Templates option and confirm with it with the Add button.
    Image RemovedImage Added
  5. Choose desired earlier created pre-defined template any previously created predefined template you want and add those parameters to your post function.
  6. Your template will be added to the list of post functions that will be run for this particular transition.
    Image RemovedImage Added


Disabling

template

templates

Once your template is active you can always disabled disable it.

  1. Log in as a user with the JIRA Administrators global permission.
  2. Choose Image Removed > Image Added > Issues. Select Workflows > Post functions Templates to open the Condition Post Function Templates page.
    (info) Tip: Use Use a Keyboard shortcutg + g + start typing post functions templates.
  3. Click the Edit Template button.
  4. Click the Disable button.


Post

Function templates options

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:

Image Added

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.

Image Added


Importing templates

  1. Log in as a user with the JIRA Jira Administrators global permission.
    Choose Image RemovedChoose Image Added  > Issues. Select Workflows > Post functions Templates to open the Condition Post Function Templates page.
    (info) Tip: Use Use a Keyboard shortcutg + g + start typing post functions templates.
  2. Click the Import button.
  3. Choose the XML file you want to upload and than 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:

  1. Log in as a user with the JIRA Jira Administrators global permission.
  2. Choose Image RemovedChoose Image Added  > Issues. Select Workflows > Post functions Templates to open the Condition Post Function Templates page.
    (info) Tip: Use Use a Keyboard shortcutg + g + start typing post functions templates.
  3. Select the template that you want to be exported export and click Edit in the Operations section.
  4. As soon as you choose choose the Export button, your template will be downloaded.