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

Evaluate a Date Picker field and block the transition if it has not been updated.

This use case is valid for both conditions and validators . The only difference is that you can specify an additional error message when using a validator.


Prerequisites

UI Expand
titleSet a predefined field value


UI Steps


UI Step

Add the post function Update fields to the transition of your choice.



UI Step

Target issue*

Select current issue.


UI Step


UI Steps

Fields

UI Step

Field*

Choose a date field, e.g., Date picker, Planned end date, Planned start date, Due date...etc.
In this example, we will consider due date as our date field.


UI Step

Value*

Select Set field value manually (parser expression) and enter the following expression with the date of your choice respecting this format.

Code Block
languagebash
linenumberstrue
1970-01-01











Configuration

UI Steps



UI Step

Jira expression*

Compare the field code of the custom field with the date introduced previously in the Update fields post function as in the following expression.

Code Block
languagebash
linenumberstrue
issue.customfield_10001 != "1970-01-01"



UI Expand
titleVariations for other fields


Select list (single choice)

Code Block
languagebash
linenumberstrue
issue?.customfield_20002?.value == "Option 01"


Select list (multiple choice)

Code Block
languagebash
linenumberstrue
issue?.customfield_10051?.map(e => e.value).includes("Option 01")


UI Text Box
typenote

Valid only for one value of the select list.


Number field

Code Block
languagebash
linenumberstrue
issue.customfield_30003 != 10


Checkbox

Code Block
languagebash
linenumberstrue
issue?.customfield_40004?.map(c => c.value).includes("Option 01")


UI Text Box
typenote
Valid only for one value of the checkbox.


Date Time Picker

Code Block
languagebash
linenumberstrue
issue?.customfield_10049 == "2022-10-29T15:28:00.000+0200"


Short text (plain text only)

Code Block
languagebash
linenumberstrue
issue?.customfield_10050 == "Short text."







Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function,
Parser functions
Use case description, Complexity
sortByTitle
cqllabel = "use-case" and label = "jira_expression" and space = currentSpace()

Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue



Page properties
hiddentrue


JWT feature

Workflow function

Jira expression condition

Jira expression validator

Update fields

Parser functions
Use case description

Evaluate a Date Picker field and block the transition if it has not been updated.

This use case is valid for both conditions and validators . The only difference is that you can specify an additional error message when using a validator.

Complexity

Status
colourGreen
titleBeginner