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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I need to understand the difference between the below three JQLs-

Hello,

 

I need to understand the difference between the below three JQLs-

created >= -30d

createdDate >= -30d

createdDate >= startOfDay(-30d)

 

Regards

Priyanka

2 answers

1 accepted

0 votes
Answer accepted

Hi @Priyanka khare ,

The first 2 are exactly the same. Both created and createdDate are ways to refer to the system date/time logged automatically when a ticket was created. -30d simply means count back 30 days from that moment.

StartOfDay(-30d) counts back 30 days from 0.00 AM on the current day. Essentially you count back 30 days from the date switch on the calendar.

@Walter Buggenhout _ACA IT_ 

Thankyou for the answer.

If i need to access the number of stories created within the last 30 days then my JQL should be-

type= story and createdDate >= -30D

OR

type = story and createdDate >= startOfDay(-30D)

issuetype = Story and createdDate >= -30d
0 votes
Tansu Akdeniz Community Leader Nov 15, 2020

Hi @Priyanka khare 

There is no difference between created and createdDate. It is just like an alias, both can be used. Also it is not the only one. Type/issuetype, key/issuekey, due/duedate are some other examples.

All queries should return same result.

@Tansu Akdeniz 

Thankyou for the answer.

If i need to access the number of stories created within the last 30 days then my JQL should be-

type= story and createdDate >= -30D

OR

type = story and createdDate >= startOfDay(-30D)

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you