...
- Log in as a user with the JIRA Administrators global permission.
- Click on the JIRA Administration cog
- Click on the Project link for the project you wish to add workflow conditions to (In this example we will add one to the project Root Cause Test with key RCT).
- You will now see the project Administration page.
- On project Administration page, look for the Workflows section and click on the(edit) icon (beside the RCT: Software Development Workflow link).
You are now presented with the list of Workflow steps and their valid transitions for the projects workflow.
For our example lets say we want to ensure that the Root Cause Issue field has been populated before a user could move the issue from In Progress to In Review (essentially blocking the Start Review transition between the two states).
In the In Progress row, click on the Start Review link from within the Transitions column.
Click on the Conditions tab to display the existing conditions for the transition.
- Click the Add condition link. You now see the list of available conditions to add to the workflow transition.
- Click the Add button on the next screen to finalize the addition of the workflow condition.
- You are returned to the list of workflow conditions for the transition. You can see the one you added in the list!
- Click on the Publish Draft button to make your changes to the workflow active.
...
Now lets try out our newly created workflow condition in action!
- Create a new JIRA Issue in the project we just added the workflow condition into.
Click on the Start Progress workflow transition button. Notice that the Start Review transition does not appear.
Note If we had added the same condition to the In Progress statuses Done transition, the only available transition at this point would be To Do.
- Now lets fulfill the workflow condition by entering a Root Cause Issue. Click on the Enter Attributer Data button.
- Enter a valid JIRA issue key into the Root Cause Issue field. Click the Update button.
- Notice that the Start Review status transition has now appeared since we have satisfied the condition we placed on the transition.
...