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

Comparing dates in automation

Hi there, 

 

I have automation that fetches data from Jira REST API and I would like to compare some dates from the response and one Issue date field. 

Screenshot 2023-11-06 at 2.45.17 PM.png

 

 

I am creating two variables:

  • sprintStartDate => {{sprint.startDate.substring(0,10).toDate.jiraDate}}
  • scheduledDate => {{issue.Date Scheduled}}

The output of these variables are :

2024-04-18
2024-04-17

 

If I use any function to compare these dates it never passes the condition. I guess I am not sending the dates correctly into compare function. 

 

I tried: {{scheduledDate.isAfter(sprintStartDate)}} but no output. 

 

How to format these dates to use them in the "Advanced compare condition"?

 

Thank you.

1 answer

1 accepted

2 votes
Answer accepted
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 06, 2023

Hi @jan_ambroz 

as fsr as i know variables are stored as type of String. Therefore I would suggest to re-convert to date with .toDate in your comparison.

Best
Stefan

Suggest an answer

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

Atlassian Community Events