Skip to content

List the organization's work items

GET
/organizations/{orgId}/work-items
curl --request GET \
--url 'https://api.modeldesk.io/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/work-items?tab=all&due=overdue&sort=updated&dir=asc&layout=list&perState=50&offset=0&limit=200' \
--header 'Authorization: Bearer <token>'

The organization’s items the caller may see, across every model and the organization itself, filtered, ordered and paged as a list, or cut per state as a board, with the workflow they are drawn in. An item on a model the caller cannot read is a locked row carrying its number, state and category only; it counts in every total, and only the state, category, model and tab (all or triage) keys keep it, any other filter drops it. An item raised on another member’s live draft is not listed at all. Repeating a key means any of its values. Keys the read does not know are ignored.

orgId
required
string format: uuid
tab
string
default: all
Allowed values: all mine ready triage

all; mine, assigned to the caller; ready, carrying the ready mark; triage, in a triage state.

state
Array<string>

Only items in these states.

category
Array<string>
Allowed values: TRIAGE BACKLOG UNSTARTED STARTED COMPLETED CANCELED

Only items in a state of these categories.

type
Array<string>
Allowed values: TASK BUG QUESTION FINDING
assignee
Array<string>

A person’s id, me for the caller, or none for items assigned to nobody.

label
Array<string>

Items carrying any of these labels.

priority
Array<string>
Allowed values: NONE URGENT HIGH MEDIUM LOW
model
Array<string>

A model’s id, or organization for items anchored to the organization. A model’s id keeps that model’s locked rows.

element
string format: uuid

Only items anchored to this element, at element or property grain. Named only beside exactly one model id; drops locked rows.

creator
Array<string>

A person’s id, or me for the caller.

due
string
Allowed values: overdue week none

overdue, due before today and still open; week, due today or within the seven days after; none, without a due date.

blocked
boolean

Only items an open item blocks.

q
string
<= 200 characters

An item number, bare, with its # or with the organization’s current or an earlier prefix (GEO-231); otherwise text the title holds, in any case.

sort
string
default: updated
Allowed values: updated number priority due

The list order. Locked rows, which carry none of these fields, come after the readable ones by number, except in the order by number.

dir
string
default: desc
Allowed values: asc desc

The direction of sort; items without a due date come last either way.

layout
string
default: list
Allowed values: list board

list, one page in sort order; board, the first perState cards of every state in workflow order, by priority then most recently updated, locked cards last. A board’s next cards of one state are the same query with state and offset.

perState
integer
default: 50 >= 1 <= 200

A board’s cards per state.

offset
integer
0
limit
integer
default: 200 >= 1 <= 1000

A list page’s rows.

OK

Media typeapplication/json

One page of the organization’s items, or the first cards of every state for a board, with what a list or board needs to show them.

object
items
required
Array
One of:
Work item

A work item as a row of a list.

object
id
required
string format: uuid
number
required

Per organization, never reused.

integer format: int64
modelId

Absent for an item about the organization.

string format: uuid
type
required

What kind of work an item is. FINDING is raised from a validation result and is not created by hand.

string
Allowed values: TASK BUG QUESTION FINDING
findingCode

The check that reported the finding a FINDING item tracks; absent on every other type.

string
title
required
string
anchor
required

The place in the model an item is about, or the organization as a whole. Finer fields are absent, never null.

object
resourceKind
required
string
Allowed values: model organization
resourceId
required

The model, or the organization for an item about the organization.

string format: uuid
elementId

Absent on an item about the model as a whole, and on an organization item.

string format: uuid
property

The element’s property by name; absent unless the item is about one property.

string
anchorStatus

Present only while the anchor’s target is not in the model at the item’s checked ref.

object
gone
required
boolean
keptAsIs

Present when someone decided to keep the item where it is.

boolean
at

When the commit that removed the target was made; absent when the target was found missing on read.

string format: date-time
by
object
id
required
string format: uuid
type
required

USER is a person, MACHINE a service account, and SYSTEM the platform itself, whose commits (metamodel seeding and re-pins) the commit log hides unless asked for them.

string
Allowed values: USER ORGANIZATION SYSTEM MACHINE
name

The display name, where one is known: a person’s from their account, a service account’s as stored with what it wrote. Left out for the platform and for a person whose account holds no name.

string
lastName

The target’s name when it was last seen.

string
lastOwnerId

The element that owned the target when it was last seen.

string format: uuid
stateId
required
string format: uuid
category

The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.

string
Allowed values: TRIAGE BACKLOG UNSTARTED STARTED COMPLETED CANCELED
assignee
object
id
required
string format: uuid
name
string
priority
required
string
Allowed values: NONE URGENT HIGH MEDIUM LOW
due
string format: date
labels
required

The ids of the workflow’s labels the item carries.

Array<string>
blocked
required

An open item blocks this one.

boolean
ready
required

Unstarted, unassigned and not blocked: anyone may claim it.

boolean
blockedBy
required

The items that block this one, open and closed, locked where the reader may not read them.

Array<object>

Another item as a line in a relation, a parent, a blocker or a picker.

object
number
required
integer format: int64
locked
required

The reader may not open the item: it is on a model they cannot read, or on another user’s draft. A locked link carries its number only.

boolean
id
string format: uuid
title
string
modelId
string format: uuid
stateId
string format: uuid
category

The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.

string
Allowed values: TRIAGE BACKLOG UNSTARTED STARTED COMPLETED CANCELED
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
total
required

How many match, across every page, locked items included.

integer format: int64
offset
required
integer
stateTotals
required

The number of items per state id, filters applied: every state of the workflow, 0 included.

object
key
additional properties
integer format: int64
notReady

On the Ready tab only: the open, readable items in an unstarted state that are claimed or blocked.

integer format: int64
models
required

The readable models the returned items sit on.

Array<object>
object
id
required
string format: uuid
name
required
string
workflow
required

An organization’s work item workflow: its states, its labels and the prefix item numbers are shown with.

object
ownerId
required
string format: uuid
states
required
Array<object>
object
id
required
string format: uuid
name
required
string
category
required

The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.

string
Allowed values: TRIAGE BACKLOG UNSTARTED STARTED COMPLETED CANCELED
order
required
integer
reserved

Present on the duplicate state, which a close enters only with the original named. Kept beside its role for readers that predate the role.

boolean
role

The meaning a workflow state has beyond its category; absent on an ordinary state. Such a state can be renamed and reordered within its category, never deleted. DUPLICATE is the canceled state a close enters only with the original named; NOT_A_PROBLEM is the canceled state recording that the team accepts a finding, which only a finding item enters, by a close. It leaves the model’s validity unchanged.

string
Allowed values: DUPLICATE NOT_A_PROBLEM
labels
required
Array<object>

A label of the organization’s workflow. Its name is unique in the organization, ignoring case.

object
id
required
string format: uuid
name
required
string
>= 1 characters <= 100 characters
colour
required

The colour a label is drawn in.

string
Allowed values: slate red blue yellow orange green purple
count

How many items carry the label; present where the workflow is read for its settings only.

integer format: int64
prefix
required

Written before every item number, as in GEO-231; derived from the organization’s name until an admin sets one.

string
/^[A-Z]{2,5}$/
earlierPrefixes
required

The prefixes the organization used before, so an address written with one still finds its item.

Array<string>
nextNumber
required

The number the next item takes.

integer format: int64
>= 1
version
required

Raised by every change to the settings; a settings write names the version it was read at, and one naming an older version is refused with workflow-stale.

integer format: int64

Example

{
"items": [
{
"type": "TASK",
"anchor": {
"resourceKind": "model"
},
"anchorStatus": {
"gone": true,
"by": {
"type": "USER"
}
},
"category": "TRIAGE",
"priority": "NONE",
"blockedBy": [
{
"category": "TRIAGE"
}
]
}
],
"workflow": {
"states": [
{
"category": "TRIAGE",
"role": "DUPLICATE"
}
],
"labels": [
{
"colour": "slate"
}
]
}
}

A value a key does not take, named by the problem’s property.

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}

The caller is a member of the organization without a seat (on the model’s metamodel, for a model’s routes), or is a service account, which no work item route admits.

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}

The caller is not a member of the organization, or it does not have work items.

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}

Error

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}