Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
UI Text Box
sizemedium
typeinfo

This validator can block a transition based on the state and the number of an issue's links.

You can specify multiple filter criteria that will be "and concatenated". Per default, all linked issues must match the combination of all criteria 

Configuration

UI Expand
titleFilter by link type

If you select specific link typesall linked issues must be linked using the selected types. If issues linked with other link types are found, the validator will fail.

The additional filters can be used to further restrict the issues to be analyzed.

UI Text Box
typeinfo

If you leave this filter blank, e.g. if the link type is irrelevant, you must check the additional option Skip link type filter / issues linked with unselected link types.

If you select specific issue types and also check the additional option Skip link type filter / issues linked with unselected link types, the additional criteria (status, resolution, field value) will only be applied to the selected issue types.

UI Expand
titleFilter by issue type

If you select specific issue typesall linked issues must be of any of the selected issue types. If linked issues with other issue types are found, the validator will fail.

The additional filters can be used to further restrict the issues to be analyzed.

UI Text Box
typeinfo

If you leave this filter blank, e.g. if the issue type is irrelevant, you must check the additional option Skip resolution issue type filter / issues with unselected resolutionsissue types.

If you select specific issue types and also check the additional option Skip resolution issue type filter / issues with unselected resolutionsissue types, the additional criteria (status, resolution, field value) will only be applied to the selected issue types.

UI Expand
titleFilter by status

If you select specific statusesall linked issues must be in any of the selected statuses. If linked issues with other statuses are found, the validator will fail.

The additional filters can be used to further restrict the issues to be analyzed.

UI Text Box
typeinfo

If you leave this filter blank, e.g. if the status is irrelevant, you must check the additional option Skip status filter / issues in unselected statuses.

If you select specific statuses and also check the additional option Skip status filter / issues in unselected statuses, the additional criteria (issue type, resolution, field value) will only be applied to the issues in the selected statuses.

UI Expand
titleFilter by resolution

If you select specific resolutionsall linked issues must be of any of the selected resolutions. If linked issues with other resolutions are found, the validator will fail.

The additional filters can be used to further restrict the issues to be analyzed.

UI Text Box
typeinfo

If you leave this filter blank, e.g. if the resolution is irrelevant, you must check the additional option Skip resolution filter / issues with unselected resolutions.

If you select specific resolutions and also check the additional option Skip resolution filter / issues with unselected resolutions, the additional criteria (issue type, resolution, field value) will only be applied to the issues with the selected resolutions.

UI Expand
titleFilter by project

Optionally specify specific projects, the linked issues must or must not belong to. The following options are available:

OptionDescription

Any project

By default, the linked issues can be in any project.

Current project

Choose this option to make sure that all linked issues are in the same project as the current issue.

Any but current project

Choose this option to make sure that all linked issues are not in the same project as the current issue.

Set projects manually (parser expression)

Define the project the linked issues must belong to using an expression in Basic text mode or Advanced text mode.

UI Text Box
typenote

The expression must return a comma-separated list of project keys.

UI Expand
titleFilter by field value

Optionally limit the linked issues to be counted or analyzed by their field values. To achieve this you must enter an expression in Logical mode. The expression must return  true or false

UI Text Box

Examples: 

ExpressionDescription
Code Block
languagebash
linenumberstrue
%{seed.issue.assignee} != null 

All linked issues must be assigned to a user. If unassigned sub-tasks are found, the validator will fail.

UI Text Box
typeinfo

Values in linked issues have to be referenced by their seed field codes.

Code Block
languagebash
linenumberstrue
%{issue.dueDate} <= %{seed.issue.dueDate}

All linked issues must have a due date of equal to or later than the current issue's due date.

UI Text Box
typeinfo

Values in linked issues have to be referenced by their seed field codes.

UI Text Box
typeinfo

If you specify an expression and also check the additional option Skip issues with unmatched field values, the additional criteria (issue type, resolution, field value) will only be applied to the issues that match the expression.

UI Expand
titleMinimum number of linked issues

Specify the minimum number of linked issues that need to satisfy the specified filter criteria. The default value is 0 to ensure the validator passes if the current issue does not have any sub-tasks.

UI Text Box
typetip

If you set this number to 1, the validator will fail if the issue does not have any linked issues or if the existing linked issues don't match the specified filter criteria.

UI Expand
titleMaximum number of linked issues

Specify the maximum number of linked issues that need to satisfy the specified filter criteria. The default value is 1000.

UI Text Box
typetip

If you set this number to 1, the validator will fail as soon as more than one linked issue satisfies the specified filter criteria.

UI Expand
titleAdditional options

The following options can be used to refine the number of issues you want to analyze in this validator.

Per default all filters are mandatory, filters are "and concatenated" and you cannot save your configuration unless you have specified values. Any linked issue being analyzed by the validator must match all criteria.

UI Text Box
typenote

If you leave a filter blank you must check the additional option to skip the filter. Otherwise you cannot save your configuration.


The additional options allow you to override the default behavior.

FilterAdditional optionDescription
No value selectedNot checked (error)Not possible. If you want to skip the filter you have to uncheck the corresponding additional option.
No value selectedChecked (tick)

Skip this filter completely. An equivalent would be to select all available options, e.g. all issue types are allowed.

One or multiple values selectedNot checked (error)Enforce that all sub-tasks which are analyzed must have the selected values, e.g. only selected issue types are allowed.
One or multiple values selectedChecked (tick)

Issues not matching the specified value areallowed and will be ignored when evaluating whether the validator passes

UI Text Box
typetip

By default, whenever a value is selected in a filter it will be combined with all other filter criteria and all linked issues must match the filter combination.

If you only want to analyze specific issue types (e.g. "Bug"), select "Bug" in the issue type filter and check the corresponding additional option. This way, other linked issues (which are not "Bugs") can exist and will not be considered.

OptionDescription
Skip link type filter / issues linked with unselected link typesThe link type is irrelevant for this validator or issues linked through non-selected link types will be ignored when evaluating whether the validator passes.
Skip issue type filter / issues in unselected issue types

The issue type is irrelevant for this validator or linked issues in non-selected issue types will be ignored when evaluating whether the validator passes.

Skip status filter / issues in unselected statuses

The status is irrelevant for this validator or linked issues in non-selected statuses will be ignored when evaluating whether the validator passes.

Skip resolution filter / issues with unselected resolutions

The resolution is irrelevant for this validator or linked issues with non-selected resolutions will be ignored when evaluating whether the validator passes.

Field values are irrelevant for this validator or linked issues with unmatched field values will be ignored when evaluating whether the validator passes.

UI Expand
titleValidation options

Include Page
DECADIS:_snip_skip validation
DECADIS:_snip_skip validation

UI Expand
titleError message

Include Page
DECADIS:_snip_error_message_validator
DECADIS:_snip_error_message_validator

UI Text Box
typetip

If you want to use this functionality in a condition instead, have a look at the Condition on linked issues.


Use cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
cqllabel = "use-case-workflow" and space = currentSpace() and ancestor in (currentContent(),"32215638")


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue

Page properties
hiddentrue

Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged

Page properties
hiddentrue
Short descriptionEvaluate the current state (type, status, number, etc.) of issue links.
Label