Versions Compared

Key

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


Panel

On this page

Table of Contents
maxLevel2
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

Sometimes resolving issues depends on fields set to a specific value. In this case, the issue is automatically resolved and transitioned to "Done" when all options of the checkbox custom field are ticked.




UI Steps

Field changed event

UI Step

Excerpt Include
DECADIS:Automation Use Case - Create Rule Step
DECADIS:Automation Use Case - Create Rule Step
nopaneltrue



UI Step

Add a Trigger → Field changed event

UI Steps


UI Step

Field

Choose your checkbox custom field


UI Step

Changed to

Choose Any value


UI Text Box
typeinfo

No further configuration needed. The automation rule is triggered every time an issue is being transitioned.




Boolean condition

UI Step

Add ConditionBoolean condition


UI Step

Use the following Parser Expression:

Code Block
languagebash
linenumberstrue
numberOfSelectedItems(%{trigger.issue.c11500}) = numberOfAvailableItems(%{trigger.issue.cf11500})
#Replace field code with the field code of your custom field. Use the field dropdown to automatically insert the field code


UI Expand
titlemore info...


UI Text Box
typeinfo




Transition issue action

UI Step

Add ActionTransition issue


UI Step


UI Steps


UI Step

Mode

Choose Transitions to status


UI Step

Status

Choose Done

Excerpt Include
DECADIS:Automation Use Case - Target status has to be reachable
DECADIS:Automation Use Case - Target status has to be reachable
nopaneltrue




UI Step

Excerpt Include
DECADIS:Automation Use Case - Enable Rule
DECADIS:Automation Use Case - Enable Rule
nopaneltrue




Screencast

This is how the configuration above should look on your screen

Multimedia
nameresolve_issues_when_all_options_of_a_checklist_are_ticked.mp4
width700


Import the example

Import the JSON file below to get started in no time.


UI Expand
titleJSON


UI Text Box
typewarning

After importing the JSON file, make sure to check the configuration of the rule. Non-existing configuration elements (issue types, fields, values etc.) will be highlighted.


Code Block
languagejs
themeMidnight
linenumberstrue
{
    "name": "Resolve issues when all options of a checklist are ticked",
    "description": "",
    "creator": "admin",
    "status": false,
    "triggerData": "",
    "triggerType": "FIELD_CHANGED_EVENT",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "fieldId": "12200",
        "option": "any",
        "triggerType": ""
    },
    "children": [
        {
            "sequence": 0,
            "type": "BOOLEAN_CONDITION",
            "ruleEntityType": "CONDITION",
            "configuration": {
                "refs": [
                    "issue",
                    "project",
                    "system",
                    "trigger",
                    "trigger.issue",
                    "trigger.parent"
                ],
                "expression": "numberOfSelectedItems(%{trigger.issue.cf12200}) = numberOfAvailableItems(%{trigger.issue.cf12200})",
                "expressionParsingMode": "logical",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 0,
                    "type": "TRANSITION_ISSUE",
                    "ruleEntityType": "ACTION",
                    "configuration": {
                        "refs": [
                            "issue",
                            "project",
                            "system",
                            "trigger",
                            "trigger.issue",
                            "trigger.parent"
                        ],
                        "option": "status",
                        "status": "10012",
                        "actingUser": "field_00020"
                    },
                    "children": null,
                    "hasChildren": false
                }
            ],
            "hasChildren": true
        }
    ],
    "hasChildren": true
}




Related use cases

Page properties report
headingsAutomated action, JWT feature, Label
cqllabel = "use-case-auto" and label = "transition-issue" and space = "JWTSDC"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Automated action

Transition issue action

Parser functions

numberOfAvailableItems()

numberOfSelectedItems()

Label




Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titleto do
Status
colourGreen
titledone
Status
colourYellow
titleneeds review
Status
colourRed
titleflagged