luke.mxDocs

Search docs

Search every page of the documentation.

API reference

Issue filters

Saved queries with sharing, stars and email subscriptions.

See Issues.

GET /v1/orgs/:orgId/issues/filters

Filters the caller owns or that are shared with them, starred first.

Auth: user access token or platform agent key · Scope: issues:read

Path parameterDescription
:orgIdOrganization id (org_…).

Response 200

{
  filters: {
    filterId: string
    name: string
    description: string
    jql: string
    ownerId?: string
    sharing: {
      org: boolean
      teams: string[]
      users: string[]
    }
    columns?: string[]
    subscriptions: {
      userId: string
      frequency: "daily" | "weekly"
      hour: number
      weekday?: number
      lastSentAt?: number
    }[]
    starred: boolean
    editable: boolean
    version: number
    updatedAt: number
  }[]
}

POST /v1/orgs/:orgId/issues/filters

Saves a query as a filter (private until shared).

Auth: user access token or platform agent key · Scope: issues:read

Path parameterDescription
:orgIdOrganization id (org_…).

Request body

FieldTypeRequiredNotes
descriptionstringNoup to 1,000 characters
sharingobjectNo
sharing.orgbooleanYes
sharing.teamsstring[]Yesup to 50 items; each up to 64 characters
sharing.usersstring[]Yesup to 200 items; each up to 64 characters
columnsstring[]Noup to 30 items; each up to 64 characters
namestringYes1–100 characters; trimmed
jqlstringYesup to 10,000 characters

Response 201

{
  filter: {
    filterId: string
    name: string
    description: string
    jql: string
    ownerId?: string
    sharing: {
      org: boolean
      teams: string[]
      users: string[]
    }
    columns?: string[]
    subscriptions: {
      userId: string
      frequency: "daily" | "weekly"
      hour: number
      weekday?: number
      lastSentAt?: number
    }[]
    starred: boolean
    editable: boolean
    version: number
    updatedAt: number
  }
}

GET /v1/orgs/:orgId/issues/filters/:filterId

A filter the caller can see.

Auth: user access token or platform agent key · Scope: issues:read

Path parameterDescription
:orgIdOrganization id (org_…).
:filterIdFilter id: a mail filter (flt_…) or a saved issue filter (ifl_…).

Response 200

{
  filter: {
    filterId: string
    name: string
    description: string
    jql: string
    ownerId?: string
    sharing: {
      org: boolean
      teams: string[]
      users: string[]
    }
    columns?: string[]
    subscriptions: {
      userId: string
      frequency: "daily" | "weekly"
      hour: number
      weekday?: number
      lastSentAt?: number
    }[]
    starred: boolean
    editable: boolean
    version: number
    updatedAt: number
  }
}

PATCH /v1/orgs/:orgId/issues/filters/:filterId

Changes a filter (its owner, or org admins).

Auth: user access token or platform agent key · Scope: issues:read

Path parameterDescription
:orgIdOrganization id (org_…).
:filterIdFilter id: a mail filter (flt_…) or a saved issue filter (ifl_…).

Request body

FieldTypeRequiredNotes
namestringNo1–100 characters; trimmed
descriptionstringNoup to 1,000 characters
jqlstringNoup to 10,000 characters
sharingobjectNo
sharing.orgbooleanYes
sharing.teamsstring[]Yesup to 50 items; each up to 64 characters
sharing.usersstring[]Yesup to 200 items; each up to 64 characters
columnsstring[]Noup to 30 items; each up to 64 characters

Response 200

{
  filter: {
    filterId: string
    name: string
    description: string
    jql: string
    ownerId?: string
    sharing: {
      org: boolean
      teams: string[]
      users: string[]
    }
    columns?: string[]
    subscriptions: {
      userId: string
      frequency: "daily" | "weekly"
      hour: number
      weekday?: number
      lastSentAt?: number
    }[]
    starred: boolean
    editable: boolean
    version: number
    updatedAt: number
  }
}

DELETE /v1/orgs/:orgId/issues/filters/:filterId

Deletes a filter and its subscriptions (its owner, or org admins).

Auth: user access token or platform agent key · Scope: issues:read

Path parameterDescription
:orgIdOrganization id (org_…).
:filterIdFilter id: a mail filter (flt_…) or a saved issue filter (ifl_…).

Response 200

{
  filterId: string
}

POST /v1/orgs/:orgId/issues/filters/:filterId/star

Stars or unstars a filter for the caller.

Auth: user access token or platform agent key · Scope: issues:read

Path parameterDescription
:orgIdOrganization id (org_…).
:filterIdFilter id: a mail filter (flt_…) or a saved issue filter (ifl_…).

Request body

FieldTypeRequiredNotes
starredbooleanYes

Response 200

{
  filter: {
    filterId: string
    name: string
    description: string
    jql: string
    ownerId?: string
    sharing: {
      org: boolean
      teams: string[]
      users: string[]
    }
    columns?: string[]
    subscriptions: {
      userId: string
      frequency: "daily" | "weekly"
      hour: number
      weekday?: number
      lastSentAt?: number
    }[]
    starred: boolean
    editable: boolean
    version: number
    updatedAt: number
  }
}

PUT /v1/orgs/:orgId/issues/filters/:filterId/subscription

Emails the caller the filter's issues daily or weekly at an hour (UTC); subscription: null stops it.

Auth: user access token or platform agent key · Scope: issues:read

Path parameterDescription
:orgIdOrganization id (org_…).
:filterIdFilter id: a mail filter (flt_…) or a saved issue filter (ifl_…).

Request body

FieldTypeRequiredNotes
subscriptionobjectYescan be null
subscription.frequency"daily" | "weekly"Yes
subscription.hourintegerYes0–23
subscription.weekdayintegerNo0–6

Response 200

{
  filter: {
    filterId: string
    name: string
    description: string
    jql: string
    ownerId?: string
    sharing: {
      org: boolean
      teams: string[]
      users: string[]
    }
    columns?: string[]
    subscriptions: {
      userId: string
      frequency: "daily" | "weekly"
      hour: number
      weekday?: number
      lastSentAt?: number
    }[]
    starred: boolean
    editable: boolean
    version: number
    updatedAt: number
  }
}