Forums

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

Cannot get timestamp in epoch timeformat of new issues

Michael Jacobsen
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!
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 Champion
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
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!
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
Product Admin
TAGS
AUG Leaders

Atlassian Community Events