
I am attempting to pull a list of who's on duty from the REST API in order to provide this information to my helpdesk admins at a glance.
I am able to successfully query MOST groups calendar using this method - curl --user username "https://acmeco.xmatters.com/api/xm/1/groups/IT/calendar" however in some cases I get a (409) Conflict response.
I've looked at the groups that are returning the error and it appears that shared overlapping shifts may be causing this problem, in my case at least. When viewing the shifts from the GUI I receive this message "This team is shared by another shift: xxxxxxxxx"
I need to find a way around this because we have associates located around the globe and in some cases our overseas associates may be on at the same time as our US based associates.
1. Is there any way to return multiple shifts per calendar?
2. Is there any way to identify shifts by group instead of name?
Any help you guys can provide would be greatly appreciated.
Thank you,
Daniel
Comments
Please sign in to leave a comment.
So, what I noticed when viewing each of these groups shifts in the GUI is a message saying
- When viewing the shifts from the GUI I receive this message "This team is shared by another shift: xxxxxxxxx"
I disabled sharing and was then able to return the calendar. I don't know if sharing is even needed so I am hesitant to disable it until I know more about what it does. This could just be an instance of a user configuring the shifts improperly.
Hmm, interesting. We used to have some boxes/settings for allowing a team to be shared among other shifts and I think even across groups... I think. I forget exactly how it worked, but I don't see a way to share the shifts in the current ui. Unless I'm missing something. I'll ask around.
In the mean time, I'd check out that other shift and see if you can copy it. Maybe in a non production box of course :)
Ok, got it straight from the source. We don't allow sharing of teams across shifts any more, and when you do the "unshare" the team should be cloned into whatever shifts it was in before. So you're safe doing the unshare. It will put everything back to the way it should be and get you past the 409 error.
I'll see if we can update the docs to reflect that 409.
Let me know how it goes!
Wonderful!
I disabled sharing and was able to successfully query the groups calendar.
Thank you for such a quick resolution!
Daniel