The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I want to get the jira issues based on date filter

Sachin Bagmare
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 13, 2021

Hi  Team,

I am  facing  the issue  while  fetching  the  jira  result based on  some  date.

Lets  say  i want  the jira issues for  month of  Feb from  1st  feb to 28 th Feb along with  some  details.

So  i build  the  API  like  below

/rest/api/2/search?jql=project="Your Project Key"  &  Fields=components,key,created & created > "2021-02-01" and  created  <  "2021-02-28"

But still  i am not  getting  the  date  wise result.

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Zoryana Bohutska _SaaSJet_
Atlassian Partner
March 17, 2021

Hi @Sachin Bagmare 

You can use JQL or an app like Dynamic Filter: JQL Replacer (created by my team).

The last one lets you filter issues by criterias you need. 

2021-03-17_10-13-01.png

I hope you will find the best solution for you.

Regards

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
March 14, 2021

Hi @Sachin Bagmare ,

query you use looks complicated. Without additional information I have no idea why. But if you need to get only issues using REST API, correct query is:

  • for Cloud solution
    • /rest/api/3/search?jql=project=HOME AND createdDate>'2021-02-01' AND createdDate < '2021-02-28'
  • for Server solution
    • /rest/api/2/search?jql=project=HOME AND createdDate>'2021-02-01' AND createdDate < '2021-02-28'
0 votes
Muhammad Ramzan_Atlassian Certified Master_
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 Champions.
March 14, 2021

Hi @Sachin Bagmare ,

 

Welcome to community, Can you please share few more details , what you expecting and what are the results and what's wrong with results so we can try to help.

Regards,

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events