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



UI Text Box
sizemedium
typeinfo

Use case

Remove automatically the value of the Remaining estimate field when an issue is closed or rejected.



Configuration

UI Steps


UI Step

Create a new rule and name it appropriately.

UI Text Box
typeinfo

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


Issue transitioned event


UI Step

Add a trigger

Select Issue transitioned event


UI Step

Trigger the event from any workflow transition.

Boolean condition

UI Step

Condition

Boolean condition


UI Step

Expression

Use the following expression:

Code Block
languagebash
linenumberstrue
%{trigger.issue.resolution} != null


UI Text Box
typeinfo

Only issues that have a resolution will pass this condition.


 Update field action

UI Step

Add an Action

Select Update field


UI Step

Field

Select Remaining estimate (minutes)


UI Step

Update to

Select Value returned by parser expression


UI Step

Parser expression

Write the following parser expression with the expression editor in Numeric mode.

Code Block
languagebash
linenumberstrue
0






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" : "Remove remaining estimate when an issue is closed",
  "description" : "",
  "creator" : "admin",
  "status" : false,
  "triggerData" : "",
  "triggerType" : "ISSUE_TRANSITIONED_EVENT",
  "configuration" : {
    "refs" : [ "issue", "system", "trigger.issue", "trigger.parent" ],
    "triggerType" : ""
  },
  "children" : [ {
    "sequence" : 0,
    "type" : "BOOLEAN_CONDITION",
    "ruleEntityType" : "CONDITION",
    "configuration" : {
      "refs" : [ "issue", "project", "system", "trigger", "trigger.issue", "trigger.parent" ],
      "expression" : "%{trigger.issue.resolution} != null",
      "expressionParsingMode" : "logical",
      "actingUser" : "field_00020"
    },
    "children" : [ {
      "sequence" : 0,
      "type" : "UPDATE_FIELD",
      "ruleEntityType" : "ACTION",
      "configuration" : {
        "refs" : [ "issue", "project", "system", "trigger", "trigger.issue", "trigger.parent" ],
        "fieldId" : "00024",
        "mode" : "parser",
        "value" : "0",
        "valueParsingMode" : "math",
        "actingUser" : "field_00020"
      },
      "children" : null,
      "hasChildren" : false
    } ],
    "hasChildren" : true
  } ],
  "hasChildren" : true
}



Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
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

Workflow function

Update field action

Parser functions
Label



Page properties
hiddentrue



Status
Tech review

Status
titletodo

Style guide

Status
titletodo

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged


...