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

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 in a project once a week.




UI Steps

Image Modified

 Manual

Scheduled 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 → Scheduled and choose who you want to execute this rule in Run as*


UI Steps


UI Step

Schedule

Choose Days per Week


UI Step

Interval

Choose once per week at 10:00am on Sunday





 JQL Selector

UI Step

Add Selector → JQL Selector


UI Step

Use the following Expression:

Code Block
languagebash
linenumberstrue
project = KEY


UI Text Box
typenote

KEY has to be a project key. In this case we are going to reindex all issues in that project.

But you can also adapt the configuration to your needs!



Reindex issue action

UI Step

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

UI Text Box
typenote

No further configuration needed.





Screencast

This is how the configuration above should look on your screen

UI Text Box
typenote

No screencast available at the moment



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": "Reindex Project TIS",
    "description": "",
    "creator": "admin",
    "status": false,
    "triggerData": "",
    "triggerType": "SCHEDULED",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "runAs": "admin",
        "scheduledTriggerCron.dailyWeeklyMonthly": "daysOfWeek",
        "scheduledTriggerCron.daysOfMonthOpt": "dayOfMonth",
        "scheduledTriggerCron.monthDay": "1",
        "scheduledTriggerCron.week": "1",
        "scheduledTriggerCron.day": "1",
        "scheduledTriggerCron.interval": "0",
        "scheduledTriggerCron.runOnceHours": "10",
        "scheduledTriggerCron.runOnceMins": "0",
        "scheduledTriggerCron.runOnceMeridian": "am",
        "scheduledTriggerCron.runFromHours": "1",
        "scheduledTriggerCron.runFromMeridian": "am",
        "scheduledTriggerCron.runToHours": "1",
        "scheduledTriggerCron.runToMeridian": "am",
        "scheduledTriggerCron.weekday": "1",
        "triggerType": ""
    },
    "children": [
        {
            "sequence": 0,
            "type": "JQL_SELECTOR",
            "ruleEntityType": "SELECTOR",
            "configuration": {
                "refs": [
                    "system"
                ],
                "jql": "project = TIS",
                "jqlParsingMode": "jql",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 0,
                    "type": "REINDEX",
                    "ruleEntityType": "ACTION",
                    "configuration": {
                        "refs": [
                            "issue",
                            "issues",
                            "selector.issue",
                            "selector.parent",
                            "system"
                        ]
                    },
                    "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 = "reindex-issue" and space = "JWTSDC"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Automated action

Reindex issue action

Label




Page properties
hiddentrue



Status
Tech review

Status
colourYellow
titleneeds review

Style guide

Status
colourYellow
titleneeds review

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