Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

This condition can hide a transition based on the state and the number of issues stored in an issue field (e.g. a custom text field).

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


Image AddedConfiguration

UI Expand
titleSource field

Select the text field containing the issues. 

Page properties
hiddentrue
Status
Tech review

Status
titletodo

Style guide

Status
titletodo

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

Panel

On this page

Table of Contentsexclude(On this page).*stylecircletypeflatseparatorpipe

UI Text Box
size
medium
typeinfo

The field must contain a list of issue keys separated by blanks, commas, colons or semi-colons.

If the source field is empty, the overall condition will pass.

If a non-existent issue key is detected in the list, the overall condition fail.



note
UI Expand
titleFilter by issue type

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

The additional filters can be used to further restrict the issues to be analyzedThis condition on a set of issues given a list of its issue keys. The following aspects are evaluated: issue type, issue status, project membership, and the number of issues.

UI Text Box
type
info

In this documentation and the condition configuration you will notice the symbol ( * ) next to some parameters, it means that this field is mandatory and shall not be left empty. Fields without the symbol are optional.

Basic configuration*

Below you will find a detailed description of each parameter of the basic configuration for this condition.

Source field*

Info
iconfalse

Select a specific field.

Filter by issue type

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

If you select specific issue types and also check the additional option Skip issue type filter / issues in unselected issue 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 issues must be in any of the selected statuses. If issues with other statuses are found, the condition 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 project

Optionally specify specific projects, the linked issues must or must not belong to

Info
iconfalse

Only issues with the selected issue types are allowed. Leave empty to allow all issue types. The following options are available:

Task
Option
  • Sub-task
  • Filter by status

    Info
    iconfalse

    Only issues with the selected statuses are allowed. Leave empty to allow all statuses. The following options are available:

    • In progress
    • To do
    • Done

    Filter by field value

    Description

    Any project

    By default, the issues can be in any project.

    Current project

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

    Any but current project

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



    UI Expand
    titleFilter by field value

    Optionally limit the 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 found issues in the specified field must be assigned to a user. If unassigned issues are found, the validator will fail

    Info
    iconfalse
    Only issues matching the field value condition provided will be allowed. Leave empty for no filtering

    .

    UI Text Box
    type
    tip

    Test your expression by clicking the play button on the top right of the expression box.

    Minimum number of issues*

    Info
    iconfalse

    Minimum number of issues required to satisfy selected filtering conditions (issue type, status, project and field values).

    Maximum number of issues*

    info

    You can access the values of issues found in the specified field by referencing their seed field codes.



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


    All found issues in the specified field must have a due date of equal to or later than the current issue's due date.

    UI Text Box
    typeinfo

    You can access the values of issues found in the specified field by referencing 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 issues

    Specify the minimum number of issues that need to satisfy the specified filter criteria. The default value is 1 to ensure the condition fails if the field does not contain issue keys.


    UI Expand
    titleMaximum number of issues

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

    UI Text Box
    typetip

    If you set this number to 1, the condition will fail as soon as more than one sub-task satisfies the specified filter criteria

    Info
    iconfalse
    Maximum number of issues allowed to satisfy selected filtering conditions (issue type, status, project and field values)

    .



    Choose from one of the following options (multi-choice is possible):

  • Ignore issues in non-selected issue types - Issues in non-selected issue types will be ignored, i.e., they will be allowed regardless of their number.
  • Ignore issues in non-selected statuses - Issues in non-selected statuses will be ignored, i.e., they will be allowed regardless of their number.
  • Ignore issues not meeting filter by field values - Issues not satisfying filter by field values will be ignored, i.e., they will be allowed regardless of their number.
    UI Expand
    titleAdditional options

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

    Per default all filters are mandatory, filters are "and concatenated" and you cannot save your configuration unless you have specified values. Any sub-task being analyzed by the condition 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 condition 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 issues must match the filter combination.

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

    Examples

    The table below lists a few example configurations and their JQL equivalent.

    ConfigurationJQL
    • Issue type: Sub-task
    • Status: Closed


    Code Block
    type = Sub-task AND status = Closed


    • Issue type: Sub-task
    • Status: Closed
    • Additional options: 
      • Skip issue type filter


    Code Block
    (type = Sub-task AND status = Closed) OR type != Sub-task



    OptionDescription
    Skip issue type filter / issues in unselected issue types

    The issue type is irrelevant for this condition or sub-tasks in non-selected issue types will be ignored when evaluating whether the condition passes.

    Skip status filter / issues in unselected statuses

    The status is irrelevant for this condition or sub-tasks in non-selected statuses will be ignored when evaluating whether the condition passes.

    Field values are irrelevant for this condition or sub-tasks with unmatched field values will be ignored when evaluating whether the condition passes.



    UI Text Box
    typetip

    If you want to use this functionality in a validator instead, have a look at the following condition: Validation on a list of issue keys



    Image AddedUse cases and examples

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


    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 issues stored in an issue field.
    Label


    Deprecated since

    Status
    subtletrue
    colourBlue
    title3.0