Get Allowed Transitions

Request

GET

https://appsec.sourcecraft.tech/v1/defect-groups/{publicId}/allowed-transitions

Path parameters

Name

Description

publicId

Type: integer

Per-repository public id of the defect group

Query parameters

Name

Description

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

Responses

200 OK

OK

Body

application/json
{
  "currentStatus": "OPEN",
  "allowedTransitions": [
    "RESOLVED"
  ]
}

Name

Description

allowedTransitions

Type: string[]

Statuses the defect group is allowed to transition to

Example
[
  "RESOLVED"
]

currentStatus

Type: string

Current status of the defect group

Example: OPEN