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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,610
Community Members
 
Community Events
184
Community Groups

Timeline API and deleted users

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.
Aug 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!

Gotcha, thank you

Shivam Naik
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 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