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) |
This workflow helps to make sure that users do not create combinations of priorities and states that you want to avoid in your project.
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
This on-change rule behaves in the following way:
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.
This workflow uses action blocks to check for undesired combinations of values. These blocks are configured as follows:
Action | Description |
---|---|
This action checks for the first undesired combination. 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. The Error message setting in the action block stores the message that is shown when the user attempts to add a comment to a verified issue. If the additional check fails, this message is displayed as an error in the YouTrack application interface. | |
This action checks for the second undesired combination. 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. The Error message setting in the action block stores the message that is shown when the user attempts to add a comment to a verified issue. If the additional check fails, this message is displayed as an error in the YouTrack application interface. |