Validation based on the value of a date type project property

Use case

Let us suppose you have a valid project property within the given context named endDate.

In the following use case the execution of the transition is only allowed, if the value in a custom date or date-time field  is greater or equal to the reference value stored in the project property.


โš’๏ธ Configuration

Add the Logical validator to the desired workflow transition.

Expression

Add the following expression:

Bash
{issue.cfnnnnn} >= stringToDate(projectProperty("endDate"), LOCAL)

Replace cfnnnnn with the actual field code of the custom date or date-time field.


๐Ÿ“ท Screenshots

ValidationBasedOnTheValueOfADateTypeProjectProperty.png


๐Ÿ“š Related use cases