On this page



Use case

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



Configuration


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.


Issue transitioned event


Add a trigger

Select Issue transitioned event


Trigger the event from any workflow transition.

Boolean condition

Condition

Boolean condition


Expression

Use the following expression:

%{trigger.issue.resolution} != null


Only issues that have a resolution will pass this condition.


 Update field action

Add an Action

Select Update field


Field

Select Remaining estimate (minutes)


Update to

Select Value returned by parser expression


Parser expression

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

0






Import the example

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


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" : "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




JWT feature

Workflow function

Update field action

Parser functionsLinks to all used parser expressions. Enter links separated by a blank space
Labelused to mark a use case as staff pick





Status
Tech review

Style guide