Forums

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

Getting New Issues from Jira API

fza July 12, 2019

Hello folks, I have a quick question.

 

I need to access newly created issues in a Jira board using the REST API. 

So essentially anytime an issue is created, when I make the API call, it will only give me issues that were created recently.

For example in Salesforce, you can have a trigger that detects when a new case is created and perform whatever processing necessary after detecting and retrieving that new case.

 

I would like to have something with similar functionality as described above. From doing a little research, if I'm not mistaken, I would be able to retrieve newly created issues within a certain time frame using the "rest/api/latest/search" endpoint. 

 

If that is possible, how do I search for issues that were newly created in, say, the past 24 hours?

1 answer

1 accepted

1 vote
Answer accepted
Warren
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.
July 12, 2019

Hi @fza 

You would use

rest/api/latest/search?jql=createdDate>(-1d)

fza July 12, 2019

Thank you!

Suggest an answer

Log in or Sign up to answer