On this page

Use case

Often you do not only use Jira's basic set of features but extend your issues with custom fields like our calculated fields.

They work perfectly to aggregate data but once in a while you might want to do a reindex to get all up-to-date values from all issues.

In this use case we will use the scheduled trigger to do a reindex the current and all linked issues as soon as the current issue is updated.


Issue updated event

Create a new rule and name it appropriately.

Providing a description will help you to identify what the rule does but this step is optional.

Add a Trigger → Issue event → Issue Updated


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

 Reindex issue action

Add Action → Reindex issue

No further configuration needed.

 JQL Selector

Add Selector → Issue Selector

Target issue(s)

ChooseLinked Issues

Reindex issue action

Next to the Issue Selector click on Add → Action → Reindex issue

No further configuration needed.


Screencast

This is how the configuration above should look on your screen

No screencast available at the moment


Import the example

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


JSON

{
    "name": "Reindex linked issues",
    "description": "",
    "creator": "admin",
    "status": false,
    "triggerData": "2",
    "triggerType": "ISSUE_EVENT",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "triggerType": "2"
    },
    "children": [
        {
            "sequence": 0,
            "type": "REINDEX",
            "ruleEntityType": "ACTION",
            "configuration": {
                "refs": [
                    "issue",
                    "project",
                    "system",
                    "trigger",
                    "trigger.issue",
                    "trigger.parent"
                ]
            },
            "children": null,
            "hasChildren": false
        },
        {
            "sequence": 1,
            "type": "ISSUE_SELECTOR",
            "ruleEntityType": "SELECTOR",
            "configuration": {
                "refs": [
                    "issue",
                    "project",
                    "system",
                    "trigger",
                    "trigger.issue",
                    "trigger.parent"
                ],
                "option": "linkedIssues",
                "issueListExpressionParsingMode": "issues",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 0,
                    "type": "REINDEX",
                    "ruleEntityType": "ACTION",
                    "configuration": {
                        "refs": [
                            "issue",
                            "issues",
                            "project",
                            "selector.issue",
                            "selector.parent",
                            "system",
                            "trigger",
                            "trigger.issue",
                            "trigger.parent"
                        ]
                    },
                    "children": null,
                    "hasChildren": false
                }
            ],
            "hasChildren": true
        }
    ],
    "hasChildren": true
}



If you still have questions, feel free to refer to our support team.