The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Walter Buggenhout
Community Champion
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!

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events