Shift length without weekends
Asked by Petr AST:

Hi there!  
Testing Opsgenie and I can't figure out how to set up on-call-schedule such a way as not to take into rotation weekends (Saturday and Sunday). Is it possible?

![rotation.png](/t5/image/serverpage/image-id/136756i9BB24D52F6CDBC77/image-size/large?v=v2&px=999 "rotation.png")

Thanks for the help!


Answers:
author: Nick H
body: Hi [@Petr AST](/t5/user/viewprofilepage/user-id/4029972) ,

That's certainly possible! Within your rotation, you'll want to toggle on the Restrict to time intervals option, select the Weekday and time of day option, then enter the days / times you need your rotation to cover on-call:

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

\^ Noticed I also highlighted the + Add new interval button.

If you enter the first day, like Monday 10:00 - Monday 22:00, then click the + Add new interval button, it will clone the follow day(s) depending on how many times it's clicked. - so you don't have to manually enter each day.

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

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

Thanks for your time!

I'm afraid I have not fully formulated the essence of the question, weekends are removed from the schedules, but shifts are skipped. For example, Petr on Friday (9/4) is 1-st day, and must be 2-nd (12/4) on Monday. But on Monday it's already "A" because it thinks there was "A" on Sun too and Petr on Sat.  
But the rotation remains the same as without the intervals, it only removes SAT-SUN.

1-2w

![1-2 week.png](https://community.atlassian.com/t5/image/serverpage/image-id/136784i89804CAD7498A729/image-size/large?v=v2&px=999 "1-2 week.png")

3-4w

![3-4 week.png](https://community.atlassian.com/t5/image/serverpage/image-id/136785i752D5E6CCA9C6522/image-size/large?v=v2&px=999 "3-4 week.png")


author: Nick H
body: To piggyback off [@am](/t5/user/viewprofilepage/user-id/2689238) "You can change the Shift Length to 1 day and then add all the members twice back to back" - that's correct.

Add each user twice (or back-to-back) into the rotation, and set the rotation to daily vs. custom. The final schedule would look like this:

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


author: Petr AST
body: [@Nick H](/t5/user/viewprofilepage/user-id/2540930)   
Got it, thanks!

<br />

Will try and test))  

Regards,  
Petr


author: Amit Kumar
body: If you enable the "Restrict to time intervals" you will get another section appear which asks you to specify what days/times of the week for the rotation to be active. There you would exclude weekends.

comments: author: Petr AST
body: Hi [@Amit Kumar](/t5/user/viewprofilepage/user-id/3048874)

True, but if there are 2x2 shifts, then the schedule, taking into account the enabled function, will simply remove the weekend from it, leaving the sequence of shifts the same. While we need to recalculate the shifts and shift the sequence, as in the description below :)


author: Amit Kumar
body: Ah I see. You can change the Shift Length to 1 day and then add all the members twice back to back.


author: Petr AST
body: [@Amit Kumar](/t5/user/viewprofilepage/user-id/3048874)   
I don't understand how, but it works)))

I appreciate it, thank you!


Tags: on-call

schedule

weekend