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
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.
JIRA Administrator login
JIRA Misc Workflow Extensions plugin
On this page:
Consider the partial workflow shown in Figure 1.
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.
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.
Increase value of field
Click on Add to configure the post-function on the transition.
Select the field name Rejection Counter from the Field 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
Add “Hide transition” condition to the “Escalate” transition
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
Select the “Conditional execution” section
Input the following script:
issue.get("Rejection Counter") == 3