Compare between two date custom fields condition and if true/false thn edit action feild

Kiran Kumar March 18, 2024

Please help

Compare between two date custom fields condition and if true/false thn edit action field.

 

If duedate is greater than enddate

then edit action field should be true

 

If duedate is lesser than enddate

then edit action field should be false

 

If duedate is equal to enddate

then edit action field should be truecondtiondate.png

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 19, 2024

Hi @Kiran Kumar 

For a question like this please post an image of the complete rule and the audit log details showing the rule execution.  Those will provide context for the community to offer suggestions.

 

Until we see those...

You are trying to compare data value using a text formatted version of the dates.

When doing that, particularly to test for less than / greater than relationships, always order the date components so they align with the testing.  To do this, I recommend using the jiraDate format or "yyyy-MM-dd".

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Date-format---

Otherwise they will not "sort" in the order you expect.

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events