Forums

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

Expected Format of to & from query params for Jira API

Andrea June 17, 2024

Hello, 


I'm trying to make a query for a specific time range to the Jira Audit Records endpoint and I'm wondering what the expected date format for the `from` and `to` query parameters should be:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-audit-records/#api-rest-api-3-auditing-record-get

 

from string

The date and time on or after which returned audit records must have been created. If to is provided from must be before to or no audit records are returned.

 

to string

The date and time on or before which returned audit results must have been created. If from is provided to must be after from or no audit records are returned.

# What date format ^^

2 answers

1 accepted

1 vote
Answer accepted
Hariharan Iyer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 17, 2024

Hi @andrea_piazza ,

 

The format is ISO 8601 format, same as the one in the response in the example

"created": "2014-03-19T18:45:42.967+0000"

Hope that helps!

 

~ Hariharan

Andrea June 17, 2024

@Hariharan Iyer Thanks! This helps! One more question regarding the Confluence Audit Records API. Just wanted to double check that the startDate` and `endDates` are in epoch in milliseconds according to the docs ? The created date is 60? 

https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit/#api-wiki-rest-api-audit-get

Thanks!

Hariharan Iyer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 17, 2024

@andrea_piazza , yes, those fields are in epoch time.

 

Thanks,

Hariharan

Like Andrea likes this
0 votes
Andrea June 17, 2024

Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events