Skip to content

Get a work item's audiences ​

GET/api/v2/workspaces/{slug}/projects/{project_id}/work-items/{pk}/audiences/

Get the audiences that restrict a work item, and where they come from. Only people an audience admits, plus the work item's own assignees and subscribers, can see a restricted work item.

A work item's own audiences override its type's, and the two are never mixed. So the response lists the work item's own audiences when it has any, with source set to work_item. When it has none, it lists the audiences of its work item type, with source set to work_item_type.

Only active audiences restrict, so enforced_source tells you which level applies:

The work item hassourceenforced_sourceaudiences
Own audiences, at least one activework_itemwork_itemIts own
Own audiences, all inactivework_itemwork_item_type if the type has an active one, otherwise nullIts own
No own audiences, and its type has somework_item_typework_item_type if one is active, otherwise nullThe type's
No audiences at either levelwork_itemnull[]

enforced_source: null means the work item isn't restricted. Audiences are listed oldest attachment first.

This works on archived work items without ?archived=.

Path parameters ​

slug:requiredstring

The workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.

project_id:requiredstring (uuid)

The project the work item belongs to.

pk:requiredstring

The work item's UUID or its identifier, such as PROJ-157.

Response ​

  • source string. Where audiences comes from. work_item: the work item's own attachments, which you change with Update a work item's audiences. work_item_type: inherited from its type, which you change on the type.
  • enforced_source string or null. The level that restricts the work item: work_item, work_item_type, or null when nothing does. It can differ from source when all of the work item's own audiences are inactive.
  • audiences array of object. The audiences at the source level, active and inactive, each with id, name, logo_props, and is_active.

Scopes ​

projects.work_items:read

Errors ​

StatusCodeCause
401unauthorizedMissing or invalid credentials.
402payment_requiredWork item security isn't on your plan, or is switched off.
403forbiddenYour token scope can't read work items.
404not_foundNo such work item, it's outside your project or tenant, you can't view it, or it's a draft, a triage work item, or in an archived project.
406not_acceptableThe Accept header asks for a representation the API can't produce.
429rate_limitedThrottled. Honor the Retry-After header before retrying.
Get a work item's audiences
bash
curl -X GET \
  "https://api.plane.so/api/v2/workspaces/my-team/projects/4af68566-94a4-4eb3-94aa-50dc9427067b/work-items/47ed6fba-1a4d-4b19-8c67-28d835d2c2c7/audiences/" \
  -H "X-Api-Key: $PLANE_API_KEY"
Response200
json
{
  "source": "work_item",
  "enforced_source": "work_item",
  "audiences": [
    {
      "id": "8bcf2c8f-7bd0-4d0c-bdc6-82df9fa1f312",
      "name": "Security response",
      "logo_props": {},
      "is_active": true
    }
  ]
}
Response200
json
{
  "source": "work_item_type",
  "enforced_source": "work_item_type",
  "audiences": [
    {
      "id": "8bcf2c8f-7bd0-4d0c-bdc6-82df9fa1f312",
      "name": "Security response",
      "logo_props": {},
      "is_active": true
    }
  ]
}
Response200
json
{
  "source": "work_item",
  "enforced_source": null,
  "audiences": []
}