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


Consider the partial workflow shown in Figure 1.

Figure 1

Step 1 - Create a custom field Rejection Counter

  1. Go to the Custom fields administration page

  2. Create a custom field of Number type named as Rejection Counter

  3. After the creation of the Rejection Counter field, associate it to the Create Issue and View Issue screens of your project.

  4. Perform a re-index.

Step 2 - Count the number of times the Reject transition has been triggered

  1. Click Edit for the workflow. In the Workflow Designer, select the transition Reject.

  2. Click on Post Functions in the properties panel.

  3. Click on Add post-function.

  4. Select Increase value of field from the list of post-functions.

  5. Click on Add to configure the post-function on the transition.

  6. Select the field name Rejection Counter from the Field drop-down.

  7. Click on Add to add the post-function to the transition.

  8. Select the custom field “Rejection Counter” under “Field”

  9. Save the post-function

Step 3 - Hide the “Escalate” transition

  1. Add “Hide transition” condition to the “Escalate” transition

Step 4 - Move the issue to escalate when the Rejection Counter is 3

  1. Add the “Transition issue” post-function to the Reject transition

  2. Select the transition “Escalated”

  3. Select the “Assignee” field under “Additional fields”

  4. Select “Set field value to constant or Groovy template”

  5. Input the username of the Project Manager

  6. Select the “Conditional execution” section

  7. Input the following script:

    issue.get("Rejection Counter") == 3


  8. Save the post-function