List Activities

Request

GET

https://appsec.sourcecraft.tech/v1/activities

Query parameters

Name

Description

defectGroupPublicId

Type: integer | null

Public id (#N) of the defect group to list activities for

gitRepo

Type: string

Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid).

Pattern: \S

Example: 0199140f-4343-7c06-a7e3-b835c305b629

pageSize

Type: integer

Pagination page size, maximum 250, default: 50 activities

Default: 50

Min value: 1

Max value: 250

pageToken

Type: string

Page token for cursor-based pagination. Omit for first page, use nextPageToken (from the response) to request subsequent pages.

Default: ``

Example: 3f5d8c9a1e4afj4bv44b453jg

Responses

200 OK

OK

Body

application/json
{
  "data": [
    {
      "uuid": "123e4567-e89b-12d3-a456-426614174000",
      "id": 0,
      "activityComment": {
        "uuid": null,
        "id": 0,
        "content": "example"
      },
      "type": "ACTIVITY_TYPE_UNSPECIFIED",
      "title": "example",
      "createdAt": 0,
      "dueDate": 0,
      "createdByUserId": "example",
      "createdByUserPublicId": "example",
      "assignedToUserId": "example",
      "newStatus": "OPEN",
      "entityTags": [
        {
          "name": "example",
          "description": "example"
        }
      ],
      "attachments": [
        {
          "id": "example"
        }
      ],
      "isDeleted": true,
      "deleted": true,
      "previousStatus": null
    }
  ],
  "nextPageToken": "example",
  "totalSize": 0,
  "listRevision": "example"
}

Name

Description

data

Type: Activity[]

Example
[
  {
    "uuid": "123e4567-e89b-12d3-a456-426614174000",
    "id": 0,
    "activityComment": {
      "uuid": null,
      "id": 0,
      "content": "example"
    },
    "type": "ACTIVITY_TYPE_UNSPECIFIED",
    "title": "example",
    "createdAt": 0,
    "dueDate": 0,
    "createdByUserId": "example",
    "createdByUserPublicId": "example",
    "assignedToUserId": "example",
    "newStatus": "OPEN",
    "entityTags": [
      {
        "name": "example",
        "description": "example"
      }
    ],
    "attachments": [
      {
        "id": "example"
      }
    ],
    "isDeleted": true,
    "deleted": true,
    "previousStatus": null
  }
]

nextPageToken

Type: string

Example: example

totalSize

Type: integer

listRevision

Type: string | null

Example: example

UUID

Type: string<uuid>

Pattern: [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

Example: 123e4567-e89b-12d3-a456-426614174000

ActivityComment

Name

Description

content

Type: string

Example: example

id

Type: integer | null

uuid

Any of 2 types
  • Type: UUID

    Pattern: [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

    Example: 123e4567-e89b-12d3-a456-426614174000

  • Type: null

    Example: null

Example: 123e4567-e89b-12d3-a456-426614174000

Example
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "id": 0,
  "content": "example"
}

ActivityType

Type: string

Enum: ACTIVITY_TYPE_UNSPECIFIED, CREATED, ASSIGNED, REASSIGNED, STATUS_CHANGED, COMMENT_ADDED, PRIORITY_ADDED, PRIORITY_CHANGED, DUE_DATE_ADDED, DUE_DATE_CHANGED, DUE_DATE_BREACHED, TAGS_ADDED, TAGS_CHANGED, RELATED_ISSUES_CHANGED, AI_SUGGESTION_ADDED, RELATED_ISSUES_REMOVED, AI_FIX_STARTED, AI_FIX_PR_LINKED, AI_STATUS_CHANGED, UNRECOGNIZED

DefectGroupStatus

Type: string

Enum: OPEN, RESOLVED_FIXED, RESOLVED_FP, RESOLVED_PROJECT_NOT_AFFECTED, RESOLVED_TOLERABLE, RESOLVED_DUPLICATE, TRIAGE_IN_PROGRESS, TRIAGED_TP, FIX_IN_PROGRESS, RESOLVED_AUTOFIXED, UNRECOGNIZED

TagDto

Name

Description

description

Type: string

Example: example

name

Type: string

Example: example

Example
{
  "name": "example",
  "description": "example"
}

AttachmentDto

Name

Description

id

Type: string

Example: example

Example
{
  "id": "example"
}

Activity

Name

Description

activityComment

Any of 2 types
  • Type: ActivityComment

    Example
    {
      "uuid": "123e4567-e89b-12d3-a456-426614174000",
      "id": 0,
      "content": "example"
    }
    
  • Type: null

    Example: null

Example
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "id": 0,
  "content": "example"
}

assignedToUserId

Type: string

Example: example

attachments

Type: AttachmentDto[]

Example
[
  {
    "id": "example"
  }
]

createdAt

Type: integer

createdByUserId

Type: string

Example: example

createdByUserPublicId

Type: string

Example: example

deleted

Type: boolean

dueDate

Type: integer

entityTags

Type: TagDto[]

Example
[
  {
    "name": "example",
    "description": "example"
  }
]

id

Type: integer | null

isDeleted

Type: boolean

newStatus

Type: DefectGroupStatus

Enum: OPEN, RESOLVED_FIXED, RESOLVED_FP, RESOLVED_PROJECT_NOT_AFFECTED, RESOLVED_TOLERABLE, RESOLVED_DUPLICATE, TRIAGE_IN_PROGRESS, TRIAGED_TP, FIX_IN_PROGRESS, RESOLVED_AUTOFIXED, UNRECOGNIZED

previousStatus

Type: DefectGroupStatus

Enum: OPEN, RESOLVED_FIXED, RESOLVED_FP, RESOLVED_PROJECT_NOT_AFFECTED, RESOLVED_TOLERABLE, RESOLVED_DUPLICATE, TRIAGE_IN_PROGRESS, TRIAGED_TP, FIX_IN_PROGRESS, RESOLVED_AUTOFIXED, UNRECOGNIZED

title

Type: string

Example: example

type

Type: ActivityType

Enum: ACTIVITY_TYPE_UNSPECIFIED, CREATED, ASSIGNED, REASSIGNED, STATUS_CHANGED, COMMENT_ADDED, PRIORITY_ADDED, PRIORITY_CHANGED, DUE_DATE_ADDED, DUE_DATE_CHANGED, DUE_DATE_BREACHED, TAGS_ADDED, TAGS_CHANGED, RELATED_ISSUES_CHANGED, AI_SUGGESTION_ADDED, RELATED_ISSUES_REMOVED, AI_FIX_STARTED, AI_FIX_PR_LINKED, AI_STATUS_CHANGED, UNRECOGNIZED

uuid

Any of 2 types
  • Type: UUID

    Pattern: [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

    Example: 123e4567-e89b-12d3-a456-426614174000

  • Type: null

    Example: null

Example: 123e4567-e89b-12d3-a456-426614174000

Example
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "id": 0,
  "activityComment": {
    "uuid": null,
    "id": 0,
    "content": "example"
  },
  "type": "ACTIVITY_TYPE_UNSPECIFIED",
  "title": "example",
  "createdAt": 0,
  "dueDate": 0,
  "createdByUserId": "example",
  "createdByUserPublicId": "example",
  "assignedToUserId": "example",
  "newStatus": "OPEN",
  "entityTags": [
    {
      "name": "example",
      "description": "example"
    }
  ],
  "attachments": [
    {
      "id": "example"
    }
  ],
  "isDeleted": true,
  "deleted": true,
  "previousStatus": null
}