Date Compare Validator do not work on initial transition

IADS Admin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 2, 2025

To prevent users from creating or cloning an issue with a due date that has been passed, I set a date compare validator [field "due date" must be later or same as "Created"] on the initial "Create" transition from start to "open" status in the project workflow. 

However, the validation does not seems to be working and I am still able to create an issue with a passed due date in the project. 

I have try using the same date compare validator rules in other transitions  (e.g. the acknowledged and start" transition) and the validator works fine and prompt an error message when I move the issue status with a passed due date. 

Is there any way to put validator on the "Create" transition and stop users creating issues with passed due dates?  

Workflow:

Capture.PNG

Validator:

Capture.PNG

1 answer

1 vote
Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 2, 2025

Hi @IADS Admin and welcome to the Community!

The rule as you designed it can't work on the create transition simply because the issue has not been created yet at that point and the created date as a result does not have a value yet.

Instead of comparing to a field, you can compare the due date to an expression and use the current date (now) for comparison:

Screenshot 2025-01-03 at 07.43.34.png

Hope this helps!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events