Skip to content
Docs
qmpass.ai Become a design partner
Guides

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.

  1. Your script

    A release id is the Jira fix version’s id (for example 10035), sprint-<id> for a sprint (sprint-42) or epic-<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"
  2. Your script
    Terminal window
    curl https://api.qmpass.ai/api/v1/projects/current/releases/10035/readiness \
    -H "Authorization: Bearer $QMPASS_TOKEN"

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.

With jq, fail a step unless the release is ready:

Terminal window
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 ;;
esac

To list what it waits on:

Terminal window
curl -sf https://api.qmpass.ai/api/v1/projects/current/releases/10035/readiness \
-H "Authorization: Bearer $QMPASS_TOKEN" | jq -r '.reasons[] | "\(.severity): \(.label)"'

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.