Activity

List activity by the pull request or issue it happened on, one page at a time

Changed on

One member's activity when login is given, otherwise everyone's in the workspace or the team. With both, the member's activity within the team's scope. Each pull request or issue is listed once, by its latest activity in the range, newest first.

get/workspaces/{workspaceSlug}/activity/work

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /workspaces/{workspaceSlug}/activity/work
  • Auth: HTTP bearer

Path parameters

workspaceSlugstring required

Workspace slug

Query parameters

loginstring
teamstring
repostring[]
range'30d' | '90d' | '1y' | 'all' | 'custom'

Activity range

fromstring date-time
tostring date-time
kindsstring[]

Kinds of activity to list (repeatable); omit for every kind

cursorstring

The previous page's nextCursor; omit for the first page

sizeinteger

Page size from 1 to 100; defaults to 30

Response

One page of work

nextCursorstring

Opaque cursor that fetches the next page when passed back as cursor; absent on the last page

Example response

{
  "content": [
    {
      "actions": [
        {
          "count": 3
        }
      ],
      "work": {
        "number": 42,
        "repository": {
          "labels": [
            {
              "color": "d73a4a"
            }
          ]
        },
        "requestedTeams": [
          {
            "name": "Platform"
          }
        ]
      }
    }
  ]
}

Changes

    • breaking

      for the path request parameter workspaceSlug, the minLength was increased from 0 to 3

    • warning

      for the path request parameter workspaceSlug, the maxLength was set to 51

    • warning

      changed the pattern of the path request parameter workspaceSlug from ^[a-z0-9][a-z0-9-]{2,50}$ to ^(?!.*--)[a-z0-9][a-z0-9-]{1,49}[a-z0-9]$

    • warning

      deleted the query request parameter teamId

    • info

      added the new optional query request parameter range

    • info

      added the new optional query request parameter repo

    • info

      added the new optional query request parameter team