Opsgenie shifts on-call schedule
Asked by Zaid Darras:

Hello,  

Can we create an **automation** rule/way to set Opsgenie shifts on-call schedule for every week?  

Thanks,  
Zaid Darras  
Systems Administrator


Answers:
author: Nick H
body: Hi [@Zaid Darras](/t5/user/viewprofilepage/user-id/3823180) ,

Opsgenie does manage automatically adding users into the following week's shift / rotation - as long as it's configured with something like this:

![schedcomm.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/143716iABC229B3B166FE60/image-size/large?v=v2&px=999 "schedcomm.jpg")

\^ The rotation is configure to rotate weekly. Currently User 4 is on-call. User 1 would take over on-call at the start of next week - as the participant list was cycled through and will restart.

Hope this helps. Let us know if you have any additional questions, issues, etc.

comments: author: Zaid Darras
body: Hi [@Nick H](/t5/user/viewprofilepage/user-id/2540930)

This is the only way to create an automation shift?


author: Nick H
body: Yes. Were you looking for something else?

If you can better describe your use-case - or what you are trying to automate - we might be able to provide some suggestions.


author: Zaid Darras
body: [@Nick H](/t5/user/viewprofilepage/user-id/2540930)

We have two shifts A \& B   

**Shift A** - have 3 sections/shifts:  

Shift A - From Mon - Thu \& Sun **(2 AM - 11 AM EST)**

Shift A on-call 1 - Fri **(2 AM - 11 AM EST)**

Shift A on-call 2 - Sun **(11 AM - 2 AM EST)**   

**Shift B** - have 3 sections/shifts:  

Shift B - From Mon - Fri **(11 AM - 8 PM EST)**

Shift B on-call 1 - Mon - Fri **(8 PM - 2 AM EST)**

Shift B on-call 2- Sat - Sun **( 2 AM - 2 AM EST)**   

Every week the user in the shift A will be in the Shift B instead of the user in the shift B, and the user in the Shift B will be in the Shift A instead of the user in the shift A.  

What the best way to create rule to replace each month for the four weeks the users between Shift A and Shift B automatically?


author: Nick H
body: I'm not really following with "*Every week the user in the shift A will be in the Shift B instead of the user in the shift B, and the user in the Shift B will be in the Shift A instead of the user in the shift A*."

Seems like for week 1 - User 1 is on-call for Shift A / User 2 is on-call for Shift B, then week 2 User 1 is on-call for Shift B / User 2 is on-call for Shift A, and it continues to rotate every other week?

Regardless - this still should be configurable with 2 rotations - or multiple rotations in general.

Shift A rotation might look something like this:

![shifta.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/144014i1D5BA960C3E22DBA/image-size/large?v=v2&px=999 "shifta.jpg")

I'm having a tough time following Shift B when users are on-call. You mentioned:

*Shift B - From Mon - Fri **(11 AM - 8 PM EST)***

*Shift B on-call 1 - Mon - Fri **(8 PM - 2 AM EST)***

So does this mean each weekday shift is Mon 11am - Tues 2am, Tues 11am - Wed 2am, etc. ?

Regardless, my interpretation of this shift might look something like this:

![shiftb.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/144017i14305C7F35634F7D/image-size/large?v=v2&px=999 "shiftb.jpg")

With the final schedule looking something like this:

![shiftfinal.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/144018i4C14AF9AB4DD57AC/image-size/large?v=v2&px=999 "shiftfinal.jpg")

Hope this helps. Let us know if you have any other questions, issues, etc.


author: Zaid Darras
body: Thanks a lot [@Nick H](/t5/user/viewprofilepage/user-id/2540930)   

This will help me.


Tags: automation

cloud

on-call