# Versions and publishing

> Work on a schedule as a private draft, compare it with what is live, publish it, and know who is told and what happens to unfilled shifts.

A schedule version is a schedule for a set of dates. It starts as a draft that only your office can see, and becomes the live schedule when you publish it. The **Versions & rotations** tab lists every version.

![The Versions and rotations tab with two rotations and a list of one draft and two published versions](https://staffedly.com/docs/img/plan/versions.webp)

## Who can open it

Admins and schedulers can create drafts and publish. Finance can look but not change anything. A teammate with custom access needs the **Scheduling** area at the manage level to publish; see [Team and access](https://staffedly.com/docs/run/team-and-access).

Publishing is always decided by a person. The [Copilot](https://staffedly.com/docs/run/copilot) can build a draft and propose publishing it, but that proposal waits in [Approvals](https://staffedly.com/docs/run/approvals) until someone approves it.

## Create a draft

1. Open **Schedule**, then the **Versions & rotations** tab.
2. Under **Schedule versions**, set **from** and **to**.
3. Click **New draft**.

The draft appears in the list with the status `draft`. Click **open →** to work on it.

If the dates already have published shifts, the draft starts from them. Those shifts stay live while you work: your people still see them in the portal, and they still count toward coverage. In the draft they are drawn as solid shifts, and the shifts you add are dashed.

Changing or cancelling one of those published shifts inside the draft changes the live schedule straight away, exactly as it does on the live calendar: you give a reason and the person is notified. Only the shifts you add to the draft wait for you to publish.

If a draft for the same dates is already open, **New draft** does not create a second one. The open draft stays in the list for you to use.

You can also start a draft from a spreadsheet with **Import a schedule from a spreadsheet**; see [Import a schedule](https://staffedly.com/docs/getting-started/import-schedule).

## Work on a draft

A draft has two views.

**The calendar.** On the **Calendar** tab, pick the draft in the dropdown next to the dates. Assign, drag and remove shifts as on the live schedule. Nobody is notified.

![The calendar showing a draft, with dashed draft shifts and the Publish this draft button](https://staffedly.com/docs/img/plan/draft-calendar.webp)

**The version's own page.** It lists every shift in the draft and has:

- **⚡ Generate draft**, which fills the draft for you; see [Generate a schedule](https://staffedly.com/docs/plan/generate-a-schedule).
- A form to add one shift: person, site, date, start, end and a category of `shift`, `call` or `office`. An end before the start runs overnight.
- **cancel** on each row, to take a shift out.
- **Diff vs published**. Click **Show diff** to see what the draft adds, removes and changes compared with the published schedule it would replace.

![A draft's own page with Diff vs published opened, the Generate draft and Publish buttons and the list of shifts](https://staffedly.com/docs/img/plan/version-diff.webp)

A shift you add by hand is checked against your [rules](https://staffedly.com/docs/plan/rules).

## Discard a draft

1. Open the draft's own page.
2. Click **Discard draft**, then **Yes, discard**.

![The question shown after clicking Discard draft, with Yes, discard and Keep it](https://staffedly.com/docs/img/plan/discard-draft.webp)

The shifts that existed only in the draft are removed. Shifts that were already published stay live as they are. Nobody is notified. A draft that is being generated cannot be discarded until the build finishes, and a published version cannot be discarded.

## Publish

1. Click **Publish** on the version's page, or **Publish this draft** on the calendar.
2. Read the confirmation and click **Yes, publish**.

![The confirmation before publishing: everyone on the schedule is notified and unfilled shifts go to Open shifts](https://staffedly.com/docs/img/plan/publish-confirm.webp)

When you publish:

- Every shift in the draft becomes live and shows in the [provider portal](https://staffedly.com/docs/portals/provider-portal).
- Each person with shifts in the period is sent one notice listing them. It goes by email to people who have an email address and have agreed to schedule emails. Text messages start once carrier registration is approved. See [Notifications](https://staffedly.com/docs/run/notifications).
- Coverage that is still unmet becomes open shifts, across the whole period. The result line tells you how many. See [Open shifts](https://staffedly.com/docs/fill/open-shifts).
- A published version whose dates sit inside this version's dates is marked `superseded`. Publishing next week never replaces this week.
- The publish is recorded in the [Audit log](https://staffedly.com/docs/run/audit-log), and the version keeps a snapshot of its shifts.

![A newly published version, with the result line saying how many open shifts were created](https://staffedly.com/docs/img/plan/publish-done.webp)

### When a draft is out of date

If another schedule covering any of the same dates was published after you started your draft, your draft cannot be published. Publishing it would put its shifts on top of the ones that are now live. The message reads "A schedule for these dates was published after this draft was started, so this draft is out of date." Discard the draft and start a new one; the new one begins from the live schedule. The same check applies to a publish proposed by the Copilot.

## Rotations

A rotation is a weekly pattern: one site, one role, one weekday and a start and end time, with or without a named person. Add one with the form at the top of the tab; **✕** removes it.

**Materialize 4w** on a rotation with a named person creates that shift as a draft for each matching weekday in the next four weeks. The shifts go into a draft that covers those weeks; one is created if none exists. Days on which the person already has a shift starting at that time are skipped.

Two things to know:

- A rotation with no person (shown as `template`) cannot be materialized. It is a note of the pattern only.
- Materialized shifts are not checked against credentials, time off or rules when they are created. Review them in the draft before you publish.

Holiday rotation across years is a different feature; see [Holidays and rotations](https://staffedly.com/docs/plan/holidays-and-rotations).

## The release calendar

The release calendar tells your people when requests for a month close and when its schedule comes out. You set it on the **Requests** screen, not here: two day numbers, one for when requests close and one for when the schedule is published, both in the month before.

![The Release calendar form on the Requests screen, with a close day and a publish day](https://staffedly.com/docs/img/plan/release-calendar.webp)

Once saved, the Requests screen lists the next six months and says whether each is taking requests, closed and being built, published, or past its publish date. A month counts as published as soon as a published version covers any part of it. People are messaged when a month opens for requests and three days before it closes, and your office gets an issue if a publish date passes with nothing published. See [Requests and time off](https://staffedly.com/docs/fill/requests-and-time-off).

## Questions

### Can I delete a draft?

Yes. Open it and click **Discard draft**. See [Discard a draft](#discard-a-draft). Published and superseded versions stay in the list.

### Do my people lose their shifts while I work on a draft?

No. Published shifts stay live while a draft holds them. People see a change only when you change one of their published shifts, or when you publish.

### Can I unpublish a schedule?

No. Publish a new draft over the same dates, or change the live schedule directly. Every publish and change is kept in the Audit log.

### Does publishing wait for approval?

Not from these screens: it takes effect as soon as you confirm. A publish proposed by the Copilot always waits in Approvals.
