Escalate an issue when the code fix has been rejected for a certain number of times
In this recipe, you will learn how to escalate an issue when the code fix has been rejected for a certain number of times
Consider a case wherein an issue work flow you want to request escalate an issue from any status
What should be achieved in the requirement?
Track the number of times a bug fix has been rejected
Escalate the issue to the Project Manager when the number of times the bug fix has been rejected reaches a limit
Disable the manual trigger of the transition used for escalation.
What do you need?
JIRA Administrator login
JIRA Misc Workflow Extensions plugin
On this page:
Configure
Consider the partial workflow shown in Figure 1.
Figure 1
Step 1 - Create a custom field Rejection Counter
Go to the Custom fields administration page
Create a custom field of Number type named as Rejection Counter
After the creation of the
Rejection Counter
field, associate it to the Create Issue and View Issue screens of your project.Perform a re-index.
Step 2 - Count the number of times the Reject transition has been triggered
Click Edit for the workflow. In the Workflow Designer, select the transition Reject.
Click on
Post Functions
in the properties panel.Click on
Add post-function
.Select
Increase value of field
from the list of post-functions.Click on
Add
to configure the post-function on the transition.Select the field name
Rejection Counter
from theField
drop-down.Click on
Add
to add the post-function to the transition.Select the custom field “Rejection Counter” under “Field”
Save the post-function
Step 3 - Hide the “Escalate” transition
Add “Hide transition” condition to the “Escalate” transition
Step 4 - Move the issue to escalate when the Rejection Counter is 3
Add the “Transition issue” post-function to the Reject transition
Select the transition “Escalated”
Select the “Assignee” field under “Additional fields”
Select “Set field value to constant or Groovy template”
Input the username of the Project Manager
jdoe
Select the “Conditional execution” section
Input the following script:
issue.get("Rejection Counter") == 3
Save the post-function