How to block an issue transition

How to block an issue transition

If you want the status of a work item to be unchangeable until the approval path is finished, you need to:

  • edit the workflow in your project to restrict the ability to change status to only a specific user or group,

  • add an automation rule that will transfer work items' status to “done”,

  • add a webhook step to an approval path.

 

You can give permission to transfer the status of an issue to the admin, or you can create a new user only for this purpose.

Workflow settings depend on project type.

Company-managed project

  1. Go to Project Settings → workflows

  2. Edit workflow

  3. Add a new status. For example, it can be “In approval”

    image-20251217-021836.png
  4. You can allow all statuses to transition to this one or allow only chosen ones

  5. Add transition - from “In approval” to “Done

    image-20251217-022056.png
  6. Add a rule “restrict who can move an issue”

    image-20251217-024719.png
  7. Choose groups and the desired group, in our case, “system-administrators”, and click “Add”

    image-20251217-024947.png

 

  1. Add another automation rule “Approval Path - Block transition until approval”

    image-20251217-025121.png

     

  2. Choose the definition for allowing a work item transition to “Done” only if it’s approved with that definition, and click the “Add” button.

    image-20251217-022710.png

     

  3. Update workflow.

  4. Add an automation rule that will change the status of an issue to “Done”, when an approval path is finished.

    image-20251217-032053.png



    image-20251217-032140.png
  5. Add a webhook step to an approval path definition. In our example, a webhook step will be the last step.

    image-20251217-023342.png

 

Team managed project

  1. Go to project settingswork types and choose the required one.

  2. Click “edit workflow

    image-20251217-025727.png
  3. Choose “Add status” and name it - in our example, “In approval”, and choose the category “In progress”

    image-20251217-030432.png

     

  4. Add transition to “in approval” status

    image-20251217-030613.png
  5. Select from status “in approval” to status “done

    image-20251217-030727.png
  6. Add a rule to transition. First, click on transition, and next click on add rule.

    image-20251217-030906.png
  7. Select “restrict who can move an issue

    image-20251217-030936.png
  8. Choose who can change the status of a work item; it can be a user or a group. Update workflow.

    image-20251217-031109.png
  9. Add an automation rule that will change the status of an issue to “Done”, when an approval path is finished.

    image-20251217-031457.png

     

    image-20251217-031603.png



    image-20251217-031808.png

     

  10. Add a webhook step to an approval path definition. In our example, a webhook step will be the last step.

    image-20251217-023342.png