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



Every

When keeping track of issues to be done, it is helpful to add a reminder to them. Here we are going to use a custom date-time field called "Reminder". Every morning at 01:00 am,

all issues where

the following rule checks for issues that have reached the re-submission date

UI Text Box
sizemedium
typeinfo

Use case

Every morning at 01:00 am, all issues where the re-submission date

Status
titleReminder
has been reached are re-transitioned to
Status
titleOpen

Page properties
hiddentrue
Function

<link to function being used>

Use case description
Status
titleReminder
has been reached are

 and will re-

transitioned to
Status
titleOpen
Complexity

transition them to

Status
colour

Green

Blue
title

Beginner

Open




UI Steps

Image Modified

Field Changed Event

Scheduled trigger

UI Step

Create a new rule and name it appropriately.

UI Text Box
typetip

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

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


UI Step

Add a trigger and choose Trigger → Scheduled and choose who you want to execute this rule in Run as*

UI Steps


UI Step

Schedule

Choose Daily


UI Step

Interval

Image Removed Issue Selector

Set to Once per day at 1:00 am



Image AddedJQL selector

UI Step

Add SelectorIssue JQL Selector → Sub-tasks


UI Step

JQL Query

Use the following Expression:

Code Block
linenumberstrue
nnnnn = startOfDay()


UI Text Box
typeinfo

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

Image Removed Update Field
note

nnnnn has to be the name of the custom date field, like "Reminder" or "duedate".


Image AddedTransition issue action

Next to

Issue selector

JQL Selector click on Add Action

Update Field

Transition Issue

UI Step
UI Steps
UI Step


UI Step


Set Update to* to Value returned by parsed expression
UI Steps


Parser Expression*

UI Step
Code Block
linenumberstrue
%{trigger.issue.priority}
UI Text Box
typewarning
Make sure the Parsing mode is set to Advanced

Mode

Choose Transition to status


UI Step

Status

Choose Open

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

UI Step

Activate the rule by clicking on the Activate rule button Image RemovedImage Removed




Image Modified Screencast

This is how the configuration above should look on your screen

Multimedia
namekeep_priority_of_parents_and_sub-tasks_in_sync.mp4
width700

UI Text Box
typenote

No screencast available at the moment



Image AddedImport 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": "Schedule issue for re-submission",
    "description": "",
    "creator": "admin",
    "status": false,
    "triggerData": "",
    "triggerType": "SCHEDULED",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "runAs": "admin",
        "scheduledTriggerCron.dailyWeeklyMonthly": "daily",
        "scheduledTriggerCron.daysOfMonthOpt": "dayOfMonth",
        "scheduledTriggerCron.monthDay": "1",
        "scheduledTriggerCron.week": "1",
        "scheduledTriggerCron.day": "1",
        "scheduledTriggerCron.interval": "0",
        "scheduledTriggerCron.runOnceHours": "1",
        "scheduledTriggerCron.runOnceMins": "0",
        "scheduledTriggerCron.runOnceMeridian": "am",
        "scheduledTriggerCron.runFromHours": "1",
        "scheduledTriggerCron.runFromMeridian": "am",
        "scheduledTriggerCron.runToHours": "1",
        "scheduledTriggerCron.runToMeridian": "am",
        "triggerType": ""
    },
    "children": [
        {
            "sequence": 0,
            "type": "JQL_SELECTOR",
            "ruleEntityType": "SELECTOR",
            "configuration": {
                "refs": [
                    "system"
                ],
                "jql": "Reminder = startOfDay()",
                "jqlParsingMode": "jql",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 0,
                    "type": "TRANSITION_ISSUE",
                    "ruleEntityType": "ACTION",
                    "configuration": {
                        "refs": [
                            "issue",
                            "issues",
                            "selector.issue",
                            "selector.parent",
                            "system"
                        ],
                        "option": "status",
                        "status": "10610",
                        "actingUser": "field_00020"
                    },
                    "children": null,
                    "hasChildren": false
                }
            ],
            "hasChildren": true
        }
    ],
    "hasChildren": true
}




Image AddedRelated use cases

Page properties report
headingsAutomated action, JWT feature, Label

Image RemovedRelated examples

detailssummary
cqllabel = "use-case-auto" and label = "transition-issue" and space = "JWTSDC"
If you still have questions regarding this example or others, feel free to refer to our support team.


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Image Added

Automated actionTransition issue action
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