Skip to main content
  • For: section leaders
  • You get: the planned moves between sections, and each section’s capacity today and for the next 12 months
  • Time: about five minutes
  • Scopes: moving-on:read
Leaders plan who moves up, to which section and when, on the moving-on page in Scoutworks. This recipe copies that plan into a Google Sheet, with each section’s capacity today and for the next 12 months: the same figures as the Capacity tab in Scoutworks. Section leaders use it to plan each term, and to see how many places open up for the waiting list. It fills two tabs, Moving on and Capacity. It takes about five minutes.

1. Add the script

In your Google Sheet, choose Extensions → Apps Script. Delete what is there, paste the script below and choose Save.
Code.gs

2. Add your key

In the script editor, choose Project Settings (the cog), then Script Properties → Add script property. Property: SCOUTWORKS_API_KEY. Value: the sandbox key to try it, or your own key.

3. Run it

Choose movingOn in the toolbar and press Run. Open the Moving on tab: the soonest move is at the top, and moves with no date yet are at the bottom. Agreed moves are ones a leader has confirmed; Suggested ones are Scoutworks’s suggestions from each young person’s age, which nobody has agreed yet. The Capacity tab has one row per section, in age order. Full from is the first month the section is projected to be full (95% of its capacity or more). The month columns show how many young people each section is expected to have at the end of that month.

4. Switch to your group

Change api-demo.scoutworks.app to api.scoutworks.app, and replace the sandbox key with your own. Your key needs only the moving-on:read scope. It does not need dates of birth: Scoutworks has already worked out who moves and when.
The Moving on tab names young people. Keep the sheet private to your leaders. Do not share it with a link that anyone can open.

Change it

  • Moves already made. The script lists moves still to happen. Add 'executed' to the status check to keep a record of moves that have happened too.
  • New starters. Rows with type waiting_list_intake are places planned for families on the waiting list. They carry waitingListEntryId; with the waiting-list:read scope, match it to GET /waiting-list for the name.
  • With the waiting list. Use m.projectedWithWaiting in place of m.projected to see each section if every place that opens is offered to the waiting list.