How to block an issue transition

If you want the status of an issue 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 issues status to “done”,

  • add 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 new status. For example, it can be “in approval”

  4. You can allow all statuses to transition to this one or allow only chosen ones

  5. Add transition - from “in approval” to “closed

  6. Add a condition to transition: click “conditions

  7. Add a condition to transition: click “add condition

  8. Select “user is in group

  9. Select group, in our example it will be “administrators”, click “Add” and publish.

  10. Add an automation rule that will change the status of an issue to “closed”, when an approval path is finished. Remember, the user set as an “actor” has to have permission to change the status of an issue.

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

 

Team managed project

  1. Go to project settingsissue types

  2. Click “edit workflow

  3. Add “in progress” status

  4. We will name it “in approval”

  5. Add transition to “in approval” status

  6. Select from status “in approval” to status “done

  7. Add a rule to transition. First click on transition, and next click on add rule.

  8. Select “restrict who can move an issue

  9. Choose who can change the status of an issue, it can be a user or group. Update workflow.

  10. Add an automation rule that will change the status of an issue to “done”, when an approval path is finished. Remember, the user set as an “actor” has to have permission to change the status of an issue.

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