In this recipe, you will learn how to sidetrack an issue from the overall workflow in order to put it on hold; this can represent a blocked status where an external problem must be resolved before proceeding, or a scenario where clarification is needed before work can continue. Because Jira does not natively support Blocked issues, the addition of an “on hold” status can be a powerful tool, especially when combined with dedicated columns or swimlanes in your Kanban board. This can provide distinct visual cues to the issues that require attention!
Alternately, you could use this setup to hide an issue from your Kanban board by setting up the “on hold” status under a status that is not included in the board (for example, a status under the To Do categoryRequirements
Jira Administrator login
An updated workflow that includes an on-hold status such as Waiting for Clarification Blocked (Figure 1, right), or a workflow that can have this status added.
Info |
---|
Note: The configuration requires a custom field that will store the name of the transition that should be used when the issue leaves the “on hold” status. This recipe use case uses a standard short text custom field and a post - function that creates a concatenated field value that enables transition names to be more clear. For example, you will create a standard transition from the In Progress status to the hold status Waiting for Clarification Blocked:
The return transition from Waiting for Clarification Blocked to In Progress uses the original status value of “In Progress” to store a transition name that will return the issue to its original status:
|
Workflow configuration
Consider the workflow shown in Figure 1, right.
Waiting for Clarification Blocked is a status available to at several points in the workflow - specifically to any status under the In Progress category (blue status nodes in the workflow). This configuration was chosen because, at any point in the development process, it may be necessary to sidetrack an issue while waiting for clarification on the resolution of questions or problems.
1. Create a custom field for tracking
originalreturn status
Before updating your workflow, you need to add a custom field to your Jira instance; this custom field will store the name of the transition that should be used when removing the hold from an issue from a hold.
Log into your Jira Server instance as an Administrator.
Click on the Settings icon ⚙️ in the upper right corner.
Select Issues.
In the left-hand panel, click Custom fields and click Create custom field in the upper right corner.
From the list of Standard fields, select
Short text (plain text only)
. Click Next.For the name, enter “Return Transition” (Figure 2, right). Enter a description if desired.
Click Create.
Associate the custom field with any screens that are used in the workflow being updated.
Click Update.
2. Open the workflow
Include Page | ||||
---|---|---|---|---|
|
3. Add
Waiting for ClarificationBlocked status and transitions
In the following section you will add the Waiting for Clarification Blocked status, if it does not already exist. Additionally, you will add all necessary transitions to and from this status. If you need to create an new status, see this page: https://support.atlassian.com/jira-cloud-administration/docs/configure-statuses-resolutions-and-priorities/.
Open your workflow using the steps above, then follow these steps:
In the upper-left hand corner of the workflow editor, click Add Status.
Select
Waiting for Clarification
Blocked, and click Add.In the upper-left hand corner of the workflow editor, click Add Transition
On the New Transition tab (Point 1, Figure 3, right), set the following options (Point 2, Figure 3, right):
From status - Select In Progress.
To status - Select
Waiting for Clarification
Blocked.Name - Enter “Request Clarification”“Blocked”.
Add the Request Clarification Blocked transition from Code Review to Waiting for Clarification Blocked. In the Add Transition window, select the Reuse a Transition tab and select
Request Clarification
Blocked.Add the Request Clarification Blocked transition from Testing to Waiting for Clarification Blocked. In the Add Transition window, select the Reuse a Transition tab and select
Request Clarification
Blocked.Repeat Step 4, above, to add a transition from Waiting for Clarification Blocked to In Progress. Name the transition “Return to In Progress”.
Repeat Step 4, above, to add a transition from Waiting for Clarification Blocked to Code Review. Name the transition “Return to Code Review”.
Repeat Step 4, above, to add a transition from Waiting for Clarification Blocked to Testing. Name the transition “Return to Testing”.
4. Add a Set issue fields post
-function to the
“Request Clarification”Blocked transition
In this section you will add a JMWE post-function to the Request Clarification transition. The Set issue fields post - function will update the issue being transitioned with the name of the transition that should be used when moving the issue out of the Waiting for Clarification Blocked status.
In your workflow, add a post - function to the Request Clarification Blocked transition:
When viewing the Workflow in Diagram view, select the Transition and click the Post Functions link. Click Add post function at the top of the list of existing post functions.
When viewing the Workflow in Text view, click the name of the Transition then select the Post Functions tab. Click Add post function at the top of the list of existing post functions.
Select Set issue fields (JMWE app) from the list and click Add.
Configure the post - function as follows:
Target issue(s) (Point 1, Figure 4, right) - Set to Current issue.Add field(s)
Under Fields to update click Add (Point 2, Figure 4, right)- Select
Return Transition
.Options - Leave all options unchecked.
.
For Field, select Return Transition (Point 3, Figure 4, right).
New Value (Point 34, Figure 4, right) - Enter the following script:
{{ ["Return to ", transition.from_status] | join }}
Click Add (Point 45, Figure 4, right).
Send notifications - Configure as needed.
Conditional execution - Configure as needed.
Run as - It is recommended to leave this set to
Addon user
.Delayed execution - Configure as needed.
Additional options - Leave blank.
Click Add.
5. Add a
ScriptedBuild-your-own (scripted) Condition to each outgoing transition
The last step in this configuration is to add a condition to each of the outgoing transitions from Waiting for Clarification. These conditions will guarantee that only the transition back to the original status is available.
In your workflow, add a condition to the Return to In Progress transition:
When viewing the Workflow in Diagram view, select the Transition and click the Conditions link. Click Add condition at the top of the list of existing conditions.
When viewing the Workflow in Text view, click the name of the Transition then select the Conditions tab. Click Add condition at the top of the list of existing post functions.
Select Build-your-own (scripted) Condition (JMWE app) from the list and click Add.
Give your condition a description, if desired.
Under Choose type select Jira Expression.
In the Jira Expression editor (Figure 5, right), click the Issue Fields tab of the Help section (Point 1, Figure 5, right).
From the Select a field pulldown menu (Point 2, Figure 5, right), select Return Transition.
Click the first box under Testing the field’s value (Point 3, Figure 5, right) to insert the code into the editor.
Replace
"A string"
with"Return to In Progress"
.Click Add.
Repeat steps 1 through 7 for the Return to Code Review and Return to Testing transitions, replacing
“A string"
in the code editor with the name of the transition.
Panel | ||
---|---|---|
| ||
🎉 Congratulations!You can now place issues in a holding status while awaiting resolution or information from outside your team. Because Jira does not natively support Blocked issues, the addition of an “on hold” status can be a powerful tool, especially when combined with dedicated columns or swimlanes in your Kanban board. |
This can provide distinct visual cues to the issues that require attention! |