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|When to use).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

One major advantage of Jira is the creation and implementation of customized workflows. But as fast as new workflows are created, mistakes happen. A common misconfiguration is forgetting to set a resolution on the final workflow transition.

By default, in Jira you cannot bulk edit resolutions. With this rule you can!




UI Steps

 Manual trigger

UI Step

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


UI Step

Add a Trigger → Manual

UI Text Box
typeinfo

No further configuration needed. The rule will only be executed if a user hits the Execute button .



 JQL Selector

UI Step

Add Selector → JQL Selector


UI Step

JQL Query

Use the following Expression:

Code Block
languagebash
linenumberstrue
project = TIS and statusCategory = Done and resolution is empty
# Customize the JQL to your needs



 Update field action

UI Step


UI Steps


UI Step

Next to the JQL Selector, click on Add → Action → Update field


UI Step

Field

Choose Resolution


UI Step

Update to

Choose Selected Value


UI Step

Value

Choose one of the given resolutions (e.g. Done)




UI Text Box
typetip

You can also use this rule to delete resolutions from issues that are obviously not done!




Screencast

This is how the configuration above should look on your screen

Multimedia
namemanual-resolution-cleanup.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": "Bulk edit the issue resolution",
    "description": "",
    "creator": "admin",
    "status": false,
    "triggerData": "",
    "triggerType": "MANUAL",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "actingUser": "field_00020",
        "triggerType": ""
    },
    "children": [
        {
            "sequence": 0,
            "type": "JQL_SELECTOR",
            "ruleEntityType": "SELECTOR",
            "configuration": {
                "refs": [
                    "system"
                ],
                "jql": "project = TIS and statusCategory = Done and resolution is empty",
                "jqlParsingMode": "jql",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 0,
                    "type": "UPDATE_FIELD",
                    "ruleEntityType": "ACTION",
                    "configuration": {
                        "refs": [
                            "issue",
                            "issues",
                            "selector.issue",
                            "selector.parent",
                            "system"
                        ],
                        "fieldId": "00028",
                        "mode": "fix",
                        "value": "7",
                        "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 = "update-field" and space = "JWTSDC"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Automated actionUpdate field action
Label

Status
colourRed
titlestaff pick




Page properties
hiddentrue



Status
Tech review

Status
titleto do

Style guide

Status
colourGreen
titledone

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