Missed Team ’24? Catch up on announcements here.

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

Cannot get timestamp in epoch timeformat of new issues

Michael Jacobsen April 17, 2020

I am writing a polling script that should check automatically on regular basis if there are new issues in service desk which have not been assigned (i.e. with status "Waiting for support".  If it is still unassigned after 15 minutes after arrival, the script will make a phone call to specific number.

To do that, I found API call with curl that can display issue in particular queue, such as: curl -s -u "myusername:apitoken" -X GET -H "Content-Type: application/json" https://mycompany.atlassian.net/rest/servicedeskapi/servicedesk/8/queue/92/issue

 

So I thought to check a timestamp in epoch format and compare to current time, however I cannot see "epoch" time in output from above, or if I use /rest/api/2/issue/10773 - I only see timestamps in human readable form.

 

Any advises appreciated, thanks!

1 answer

0 votes
Ajay _view26_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 17, 2020

Hi @Michael Jacobsen ,

 

Did you check out Automation feature available for Jira Servicedesk projects ? The use-case can be full-filled easily by writing a custom rule  

Michael Jacobsen April 17, 2020

I tried, but couldn't make it work (to do what I need)

Suggest an answer

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

Atlassian Community Events