Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira smart value compare two dates and get the latest comment

Neville May 28, 2024
{{#if(equals(

{{issue.comments.reverse().get(0).created.jqlDate}}, {{now.jqlDate}}

))}}{{issue.comments.reverse().get(0).body}}{{/}}
But it return syntax error.

I would like to compare the latest comment create date and today's date.
If yes, show the comment.
Thanks

1 answer

0 votes
Kalyan Sattaluri
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.
May 28, 2024

Hello @Neville 

If I understand your ask correctly, if there is a comment which was put in today, you want it?

Please try below:

{{#if(equals(comments.last.created.jiraDate, now.jiraDate))}}{{comments.last.body}}{{/}}

If thats not the requirement, please clarify.

Also please share your rule sceenshot so we can look at your rule. 

Hope it helps. Thanks!

Suggest an answer

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

Atlassian Community Events