Timeline API and deleted users

Christian Bianchi August 20, 2022

I am trying to collect historical data about shift schedules and I collect that data using the schedule timeline API call: https://docs.opsgenie.com/docs/schedule-api#get-schedule-timeline

 

Everything looks good, but there seems to be a problem with deleted users (users that left the company and have been removed from opsgenie account completely). Their "participant" entry contains no name:

 

{
"startDate": "2021-08-27T16:00:00Z",
"endDate": "2021-08-28T00:00:00Z",
"type": "historical",
"recipient": {
"id": "306ef56f-c053-4ee0-a37e-6de5a25fa3f6",
"type": "user"
},

 For comparison, here is an entry for an active user:

{
"startDate": "2021-08-26T16:00:00Z",
"endDate": "2021-08-27T06:00:00Z",
"type": "historical",
"recipient": {
"id": "b55143c4-0ef9-45d5-b615-febaf011ed59",
"type": "user",
"name": "name@domain.foo"
},

Fun fact: on the web UI I can navigate back to the same date and see the name of the person who was on call on august, 27th 2021 so the data is there somehow.

 

Is there a way to get the name of deletes users in the timeline API? 

1 answer

1 accepted

0 votes
Answer accepted
Shivam Naik
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 22, 2022

Hi @Christian Bianchi ,

Happy to help!

 At the moment, seeing Deleted Users is not possible, in part because removed association with the returned ID. To address this, we have filed a Feature Request here https://jira.atlassian.com/browse/OPSGENIE-812, and I would recommend adding yourself as a Watcher, and vote on it to receive direct updates from Engineering.

Please let us know if you have any follow up questions!

Christian Bianchi August 23, 2022

Gotcha, thank you

Shivam Naik
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 23, 2022

No problem!

Let us know if you have any other questions

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events