How to do it...

We need to add a new workflow condition to the transition we want to apply restrictions to:

  1. Select and edit the workflow to configure.
  2. Select Diagram mode.
  3. Click on the Frozen global workflow transition.
  4. Click on the Conditions link from the panel on the right-hand side.
  5. Click on Add condition, select Value Field (JSU) from the list, and click on Add.
  6. Configure the condition with the following parameters:
    • The Status field for Field
    • The not-equal sign, !=, for Condition
    • Frozen for Value
    • String for Comparison Type

This means that the transition will be shown only if the issue's status field value is not Frozen as shown in the following screenshot:

  1. Click on the Add button to complete the condition setup.

At this point, we have added a condition that will make sure that the Freeze Issue transition is not shown when the issue is already in the Frozen status. The next step is to add another condition to restrict the transition to be available only to users in the Developer role.

  1. Click on Add condition again and select User in the Project Role condition.
  2. Select the Developer project role and click on Add.
  3. Click on Publish Draft to apply the change.

After you have applied the workflow conditions, the Frozen transition will no longer be available if the issue is already in the Frozen status, and/or if the current user is not in the Developer project role.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.219.33