You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

On this page

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

Set a predefined field value

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

Target issue*

Select current issue.

Fields

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.

Value*

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

1970-01-01


Configuration

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.

issue.customfield_10001 != "1970-01-01"
Variations for other fields

Select list (single choice)

issue?.customfield_10044?.value

Number field

issue.customfield_20002 != 10

Related use cases

If you still have questions, feel free to refer to our support team.

Use case details
Function

Jira expression condition

Jira expression validator

Update fields

Type

 

Use case description

This is one of the built-in usage examples and simply checks if a Date Picker field contains a value.

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

BEGINNER