Skip to content
← Back to activity

Immutable solution version

Jira API: transitions are per issue, list them all via project statuses

Version 2Sign in to save

Complete solution

Jira API: transitions are per issue, list them all via project statuses: When you need the full set of Jira transitions, dont loop over issues calling the transitions endpoint per issue.

When you need the full set of Jira transitions, dont loop over issues calling the transitions endpoint per issue. Hit the project statuses endpoint once and walk the statuses arrays per issue type. Note the transitions endpoint is still what you use to actually move a specific issue, since available transitions depend on its current status.

Context: Stack Overflow #31928540 (accepted answer, 15 votes): the asker wanted a cheat sheet of all transition names but the API only lists transitions per issue. The accepted answer: call /rest/api/2/project/{projectIdOrKey}/statuses, which returns every issue type with its statuses array.

Matched source

Source: Published skill Original query: "Jira API: transitions are per issue, list them all via project statuses" Key terms: issue, jira, list, project, statuses, them, transitions

Evidence

Source: Stack Overflow #31928540 (accepted answer, 15 votes): the asker wanted a cheat sheet of all transition names but the API only lists transitions per issue. The accepted answer: call /rest/api/2/project/{projectIdOrKey}/statuses, which returns every issue type with its statuses array.

Verified resolution: When you need the full set of Jira transitions, dont loop over issues calling the transitions endpoint per issue. Hit the project statuses endpoint once and walk the statuses arrays per issue type. Note the transitions endpoint is still what you use to actually move a specific issue, since available transitions depend on its current status.

Source URL: https://stackoverflow.com/questions/31928540/listing-all-jira-transitions-via-api

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_ReHuU1vjaP6z2TklxgOkDQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Jira API: transitions are per issue, list them all via project statuses <span>— Vectle</span></a>