Work Items API
A work item is one row of the tracker: a story, a task, a sub-task, a bug, a spike or an improvement.
A work item is one row of the tracker: a story, a task, a sub-task, a bug, a spike or an improvement. All six kinds share the project's tracker sequence, so a reference such as CRM-142 is always one thing, and each kind adds its own columns to the ones they share: a story's persona and "as a / I want / so that", a bug's severity, environment, steps, expected and actual results, a spike's time box and outcome. A story carries acceptance criteria, the sentences that say when it is done, with an optional Given/When/Then each.
Every save of an item writes a version that also carries its criteria, so an item and its criteria are restored together. The versions are read and put back through the endpoints below, under the item's own abilities.
The reads here see the items of the projects the token may see; a client guest's token sees the items an approval pinned, which is none until the approval module lands, because a story is the team's working note until the client signs it off. An item outside that set is a 404 RESOURCE_NOT_FOUND, never a 403. Every write runs the same action the Backlog page runs, under the project permissions, and announces itself as a work_item.* event.
Endpoints
/v1/me/work-itemsList my work itemsGET/v1/projects/{project}/work-itemsList work itemsPOST/v1/projects/{project}/work-itemsAdd a work itemGET/v1/work-items/{item}Get a work itemPATCH/v1/work-items/{item}Update a work itemDELETE/v1/work-items/{item}Delete a work itemGET/v1/work-items/{item}/revisionsList a work item's versionsGET/v1/work-items/{item}/revisions/{revision}Get a version of a work itemGET/v1/work-items/{item}/quality-reviewsList a work item's quality reviewsPOST/v1/work-items/{item}/quality-reviewsReview a work item's qualityPOST/v1/work-items/{item}/statusMove a work itemPOST/v1/work-items/{item}/assignAssign a work itemPUT/v1/work-items/{item}/acceptance-criteriaReplace a work item's acceptance criteriaPOST/v1/work-items/{item}/revisions/{revision}/restoreRestore a version of a work itemRelated
How is this guide?
Last updated on