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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,770
Community Members
 
Community Events
184
Community Groups

How can I compare the jiradate to the current day?

Capture.PNG

Im trying to do a advance compare for todays date specifically and it keeps telling me the condition doesnt match. My end goal is to apply this logic to tell a rule that if the jiradate = 12/25/2022 then dont run.

1 answer

1 accepted

3 votes
Answer accepted
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 12, 2022

Hi @Dom Malgieri 

I'm not quite sure what is it that you want to achieve.

{{now.jiraDate}} yields today's date (now) in the jira format. What you are trying to do is to compare the now date with an expression that returns null ({{now.jiraDate.12/01/2022}}). So what is it that you want to compare? Today's date with a specific date?

Correct, or rather a string of dates...holidays but if I need to compare them individually thats fine. I just cant seem to get it to compare the current date to a set date. I set the others date as today to see if I could get it to work instantly and then from there i could adjust the date as needed.

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 12, 2022

Then try this:

compare datespng.png

Success. Much appreciated. Is there a way to do multiple dates or can it only be one date at a time?

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 13, 2022

Multiple dates or multiple ifs?

dates. I think i got it though by putting or between each date on the second value

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 14, 2022

Good to know!

But in case it doesn't work, try using "contains regex" instead of "equals", and as the second values type something like this: 

(2022-01-12|2022-01-14)

where all the dates you want to compare are separated by a |

 

Kindly mark my answer as accepted in order to help other find proper answers!

Cheers!

Suggest an answer

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

Atlassian Community Events