Jira contains a workflow engine, which allows executing actions when issue undergoes a state transition. This mechanism is called workflow post function.

Asset Tracker plugs into this mechanism and lets Jira automatically invoke operation sequence on an asset associated with a transitioned issue. For example, this can be used to assign an asset to the issue reporter when the issue is resolved, mark the asset as broken when the issue goes to the "In progress" state, etc.

In order to define the post function you need to edit the workflow definition. To do this:

  1. go to the "Workflows" page of the project administration
  2. find the workflow that you are interested in and click the edit button (with the pencil icon)

This opens the workflow definition screen. On this screen, select the state transition that you would like to modify:

This open the transition definition screen. On this screen, select the "Post Functions" tab and click "Add post function"

This opens a page where you can select the type of function. Select "Modify Associated Asset" and click "Add":

This opens a page where you can select the operation sequence to use (only public sequences are available, because the post function has to be available for all users). You can either select one of the existing sequences, or add a new one. 

The "Ignore asset field operation errors" checkbox can be used to not generate an error when the operation sequence produces an error (for example if the value of the field to set is invalid). If this checkbox is cleared, the error will prevent transition from taking place and an error message willbe displayed. Otherwise, it will only produce a warning message in Jira log file.

After selecting the sequence to use, click "Add" button.

The post function executing the operation sequence has been added. Now you have to publish the draft of the modified workflow to apply the changes:

  • No labels

This page has no comments.