Sprints and backlog
Sprints are computed, never typed in. The cyber-asana.scrum reference sets
sprint_anchor_date (the first day of sprint 1), sprint_length_days, sprint_name_format, and
working_days. For any date the CLI finds the sprint’s index, name, and dates, then asks the
scope’s sprint model for the Asana object that stands for it.
cyber-asana sprint currentcyber-asana sprint listcyber-asana sprint tasks --sprint previous --incompletecyber-asana sprint add <task-gid> <task-gid> --sprint nextcyber-asana sprint start --sprint nextcyber-asana sprint closecyber-asana sprint plancyber-asana backlog listEvery command takes --scope <name> (see Repo config), --json, and
--toon. --sprint takes current (the default), next, previous, a number, or a name written by
sprint_name_format.
“Today” is the date in the timezone user me reports. Asana’s public API does not return a user
timezone (checked live on 2026-11-14, with and without opt_fields=time_zone), so “today” is the
date in the timezone of the machine running the command, and sprint current says so
(timezone_source: machine). If Asana starts returning time_zone, the same command reports
timezone_source: asana with no change on your side.
The sections model
Section titled “The sections model”The first model, sections, is the default. A sprint is a section named by sprint_name_format in
each project of the scope. The backlog is the incomplete tasks in every section that is not a sprint
section, which includes the section the policy’s backlog_section names (default Backlog). It reads
sections and their tasks only, so it works on a free workspace. It supports project and projects
scopes. Its reference, cyber-asana.sprint-model.sections, lists the CLI command and the primitive
commands for each operation.
| Command | What it does |
|---|---|
sprint current |
The sprint for today, with its dates and working days, and the projects that hold its section. |
sprint list |
The sprints that have a section in the scope, plus the current one, each past, current, or future. |
sprint tasks |
The sprint’s tasks, each once across projects, with completed and open counts. --incomplete keeps the open ones. |
sprint add <task-gid>... |
Moves each task into the sprint’s section in every project of the scope it is in. A task already there is left alone. |
sprint start |
Creates the sprint’s section in each project that lacks one. When the sections exist it changes nothing and exits 0. With --snapshot it also posts the commitment (see Reports). |
sprint close |
Carries the sprint’s incomplete tasks over as the policy’s carry_over says: move puts them in the next sprint’s section (created if missing), leave moves nothing. |
backlog list |
The backlog in each project’s order, each task once. It names a project that lacks the backlog section. |
sprint start, sprint add, and sprint close are safe to repeat: a second run changes nothing.
The custom-field model
Section titled “The custom-field model”The second model, custom-field, makes a sprint an option of one Sprint enum field that every
project of the scope shares, and the backlog the incomplete tasks whose Sprint field is unset. It works
for project, projects, and portfolio scopes, so it is the model for a scope that spans projects.
Its reference is cyber-asana.sprint-model.custom-field.
It finds the field from the sprint role in .agents/cyber-asana.json (config discover-fields
saves it), else by the name Sprint or Iteration among each project’s attached fields. Create and
attach it with custom-field create and custom-field attach, or
let init-asana-scrum do it.
Listing a sprint’s tasks, the backlog, and sprint close use task search,
which needs a premium workspace and pages past 100 results on its own. On a free workspace they stop
with premium-required. The model’s other commands behave as follows:
| Command | What it does |
|---|---|
sprint start |
Creates the sprint’s enum option. When it exists it changes nothing and exits 0. |
sprint add <task-gid>... |
Sets each task’s Sprint field to the sprint’s option and reports the option it left. A task whose projects lack the field is outside_scope. |
sprint close |
move sets each incomplete task to the next sprint’s option (created if missing); leave changes nothing. |
backlog list |
Incomplete tasks with no Sprint value. It reports no backlog section. |
Search is eventually consistent: a task whose Sprint value just changed can take a moment to move
between sprint tasks and backlog list.
The project model
Section titled “The project model”The third model, project, makes a sprint a project of its own, named by sprint_name_format and
grouped in a portfolio. Tasks live in one backlog project and are multi-homed into the sprint’s
project, so each sprint gets its own board, sections, and reports. It works for every scope kind once the
scope names both pieces: backlog_project (a project scope’s own project when unset) and
sprint_portfolio (a portfolio scope’s own portfolio when unset). Without one the commands stop with
scope-incomplete. Its reference is cyber-asana.sprint-model.project.
cyber-asana config scope add squad --kind project --project <backlog-gid> \ --sprint-model project --sprint-portfolio <portfolio-gid> --sprint-template <template-gid> --defaultNothing here uses task search, so it works wherever you can read and write tasks; portfolios are the one paid piece.
| Command | What it does |
|---|---|
sprint start |
Creates the sprint’s project, by duplicating sprint_template when the scope has one (else a plain project in the backlog project’s workspace and team), and adds it to the portfolio. sprint_project names it. When it exists it changes nothing and exits 0. |
sprint add <task-gid>... |
Multi-homes each backlog task into the sprint’s project; the task stays in the backlog project. A task already there is left alone; one not in the backlog project is outside_scope. |
sprint close |
move starts the next sprint’s project when missing, adds each incomplete task to it, then removes the task from the closed project; leave changes nothing. The closed project is not archived: it keeps what it delivered for reports and velocity. Archive it with project update <gid> --archived when you want it out of sight. |
sprint tasks |
The sprint project’s tasks. |
backlog list |
The backlog project’s incomplete tasks that no sprint project holds. |
section_gid in sprint current is the sprint project’s GID. state_carrier: sections is allowed with
this model, since each project’s sections are free for workflow states; the reports do not read sections
as states and say so in notes.
Failure statuses
Section titled “Failure statuses”Each status is told apart by error.code.
| Code | When |
|---|---|
sprint-none |
Today is before sprint_anchor_date, or no project has the sprint’s section. The error says how to start it. |
sprint-unknown |
--sprint is not current, next, previous, a number, or a name the format writes. |
model-unsupported |
The scope’s sprint_model is one the CLI does not build in, or the scope kind does not suit the model. The error names the model; follow its reference with the primitive commands instead. |
policy-incomplete |
sprint_anchor_date is not set. |
sprint-field-missing |
The custom-field model finds no Sprint field on the scope’s projects. The error names custom-field create and attach. |
sprint-field-ambiguous |
The scope’s projects use more than one Sprint field. The error lists them. |
scope-incomplete |
The project model’s scope names no backlog project or no sprint portfolio. |
premium-required |
The custom-field model needs task search and Asana answered 402. Exits 7, like any plan limitation. |
All but premium-required exit 2.
sprint plan
Section titled “sprint plan”The arithmetic of planning, so the model never adds numbers. It reads, and writes nothing.
cyber-asana sprint plancyber-asana sprint plan --sprint current --scope webcyber-asana sprint plan --tasks <gid>,<gid>--sprint defaults to next, and the sprint needs no section yet. The command combines three things:
- Velocity: the mean of the last
velocity_windowclosed sprints, story and task points apart (the velocity report). - Capacity: the team’s Asana Allocations hours for the sprint’s dates. When the plan has no
allocations (402), or none overlaps the dates, capacity is
unknownwith the reason, and the plan fits against velocity alone. - The backlog, in its priority order, with a running total of story points, task points, and effort
hours (both kinds times
hours_per_point) after each task.
proposal is the backlog top that fits every limit: story points and task points each against their own
mean, effort hours against capacity. It stops at the first task that overruns a limit, and
stopped_before says which limit. It never skips ahead to a smaller task, since the backlog order is the
team’s priority. With neither velocity nor capacity there is nothing to fit against, and the proposal is
empty with a note.
--tasks totals the tasks you settled on and compares each total with its limit (selection, with
fits). A GID that is not in the backlog is listed in not_in_backlog. Once you agree a plan, run
sprint start, sprint add, and sprint start --snapshot to make it real.