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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

How to get updated records through REST API?

Hi Team, 


I have  REST URL as below using in ServiceNow doing "get" it is working fine, but I also want to get the records that are updated in last 1hr.

Please suggest how can I do that



1 answer

Hi Ashok,


Have you tried the 'updated' property?

project = REC and updated > -1h


Note - this will also show you issues where comments or work logs were added, it does not track just field or status values.



Hi Radek, 

I tried like this as your mentioned above, still not able to retrieve records

getting an error invalid query =REC and updated >-1h


Please let me know if I'm doing anything wrong here



Hi Ashok,


I'm guessing your query is not valid due to a problem something like a shell expansion (because '>' is a control character in shell) OR you are not authenticating in the request and so it cannot find the project.


Works fine for me without html char encryption if I paste the query in browser, so it makes me think that likely it's stemming from your client that you're sending the request from.


Do you have an option to wrap the URL parameter? Or you could try the POST format and provide the jql query as body.


Just to clarify what I mean is that if I use the raw jql, it will work OK in the browser, but if I were to send this with cURL, and the URL is not wrapped in single quotes '', then it will fail and try to redirect the output to a file "-1h". Something like this I think.




Suggest an answer

Log in or Sign up to answer

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