On this page

Use case

Resolutions are a great way to track issues in Jira and check what has been done and what still needs to be done. But from time to time resolutions might be set even though the issues aren't finished, yet.

With the following rule the resolution will be removed from all issues that are not in status category "Done".


 Manual trigger

Error: Cannot create XmlPullParser

Add a Trigger → Manual

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

 JQL Selector

Add Selector → JQL Selector

JQL Query

Use the following Expression:

statusCategory != Done and resolution is not empty

 Update field action

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

Field

Choose Resolution

Update to

Choose No value - clear field


 Screencast

This is how the configuration above should look like on your screen


Import the example

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


JSON

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.

{
    "name": "# Resolution reset",
    "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": "statusCategory != Done and resolution is not 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": "clear",
                        "actingUser": "field_00020"
                    },
                    "children": null,
                    "hasChildren": false
                }
            ],
            "hasChildren": true
        }
    ],
    "hasChildren": true
}



Error: Cannot create XmlPullParser