Read release readiness
Ask whether a release is ready from a script or dashboard, and read the answer.
Release readiness is the Release view’s answer as data: one verdict for the release, what it waits on, and each stage’s sign-off. Use it to show releases on a dashboard, or to stop a script until a release is ready.
Before you start
Section titled “Before you start”- A project API token. Read only is enough. See Authentication.
Read it
Section titled “Read it”- Your script
Find the release id
Section titled “Find the release id”A release id is the Jira fix version’s id (for example
10035),sprint-<id>for a sprint (sprint-42) orepic-<id>for a tracked epic (epic-10051). Home’s breadcrumb in Qmpass.ai shows it, or list the project’s releases:Terminal window curl https://api.qmpass.ai/api/v1/projects/current/release-scopes \-H "Authorization: Bearer $QMPASS_TOKEN" - Your script
Ask for readiness
Section titled “Ask for readiness”Terminal window curl https://api.qmpass.ai/api/v1/projects/current/releases/10035/readiness \-H "Authorization: Bearer $QMPASS_TOKEN"
Read the answer
Section titled “Read the answer”The fields most scripts need:
| Field | What it holds |
|---|---|
verdict |
Where the release stands: not_started, in_progress, not_ready, ready_with_risks, ready or released. Note that not_ready means something must be fixed first. |
release |
The release’s id and name. |
reasons |
What the verdict waits on, most severe first. Each has a code, a readable label and a severity: block (must be fixed first), progress (work still to come) or risk (released with care). |
stagesSignedOff, stagesCounted |
How many of the release’s stages are signed off. |
waitingOnStageId |
The first stage still without its sign-off, or null when every stage is signed off. |
stages |
Every stage in order, with its name, status and sign-off. |
releaseAction |
Whether the release decision can be recorded now: allowed, and denied with the reason when it can’t. |
computedAt |
When the answer was worked out. |
The API reference lists every field. The Release view shows the same verdicts in words: not_started and in_progress are Not ready (work still ahead), not_ready is Blocked (something to fix first), and ready_with_risks, ready and released are Ready with risks, Ready and Released. See Statuses.
Stop a script until the release is ready
Section titled “Stop a script until the release is ready”With jq, fail a step unless the release is ready:
verdict=$(curl -sf https://api.qmpass.ai/api/v1/projects/current/releases/10035/readiness \ -H "Authorization: Bearer $QMPASS_TOKEN" | jq -r '.verdict')
case "$verdict" in ready|ready_with_risks|released) echo "Release is $verdict" ;; *) echo "Release isn't ready: $verdict"; exit 1 ;;esacTo list what it waits on:
curl -sf https://api.qmpass.ai/api/v1/projects/current/releases/10035/readiness \ -H "Authorization: Bearer $QMPASS_TOKEN" | jq -r '.reasons[] | "\(.severity): \(.label)"'Poll politely
Section titled “Poll politely”Readiness changes when people sign off, evaluations finish or Jira changes, so it rarely needs checking more than once a minute. On 429 or a 5xx answer, back off and try again. See Errors and limits.