Issue Property Combinations
This workflow blocks users from setting specific combinations of values for fields in an issue. You can customize this workflow to prevent any combination of values you want to avoid.
Name | @jetbrains/youtrack-workflow-issue-properties-combinations |
|---|---|
Previous Title | Issue Properties Combinations |
Auto-attached | no |
Rules | Block incompatible value combinations for custom fields (on-change rule) |
Use Case
This workflow helps to make sure that users do not create combinations of priorities and states that you want to avoid in your project.
For example, you can use it to make sure issues with a Show-stopper priority are not left in the Submitted state and that issues in the Open state are not left Unassigned.
Rules
This on-change rule checks the combination of Priority and State when an issue is created or updated. The following combinations are blocked:
Submitted and Show-stopper
Open and Unassigned
For example, an issue with the values Priority: Show-stopper and State: Submitted is rejected, while Priority: Show-stopper and State: Open is allowed. Likewise, an issue with State: Open must have an assignee, while an unassigned issue is allowed when its state is changed to a different value.
Block incompatible value combinations for custom fields
This on-change rule behaves in the following way:
Rule Prerequisites
This rule does not specify any special criteria for processing issues. Instead, the incompatibility checks are handled in the Actions section of the workflow rule using Check for Additional Conditions blocks.
Rule Actions
This workflow uses action blocks to check for undesired combinations of values. These blocks are configured as follows:
Action | Description |
|---|---|
This action blocks issues where the Priority is set to Show-stopper while the State is set to Submitted. The combination is checked by comparing the values for two fields using Date Field Matches Specified Criteria condition blocks for both values. The first block is configured with the following settings:
The second block is configured as:
These conditions are grouped inside an OR block. This means that either of the specified conditions must be met for the workflow to continue. If both checks fail, the issue update is blocked and the text from the Error message setting is shown in the YouTrack interface. | |
This action blocks issues where the State is set to Open and the Assignee field is empty. The combination is checked by comparing the values for two fields using Date Field Matches Specified Criteria condition blocks for both values. The first block is configured with the following settings:
The second block is configured as:
These conditions are grouped inside an OR block. This means that either of the specified conditions must be met for the workflow to continue. If both checks fail, the issue update is blocked and the text from the Error message setting is shown in the YouTrack interface. |