Link an existing ticket to findings
Link an existing external ticket (e.g. Jira) to one or more Semgrep findings by providing the ticket URL and a list of finding IDs. This does not create a ticket in your issue tracker — it only records the association in Semgrep. If a finding is already linked to a different ticket, the existing link is replaced. Requires a configured ticketing integration.
Authorizations
Get access to data with your API token. Example header:
Authorization: Bearer 2991e2fb4b540fe75b8f90677b0b892b6314e4961cb001fe6eb452eee248a628
The token can be provisioned from the Tokens section in your Settings, and requires explicitly enabling Web API access.
Path Parameters
Deployment ID. Can be found at /deployments, or in your Settings in the web UI.
123
Body
Link ticket request
An array of Semgrep finding IDs to link the ticket to.
The URL of the external ticket to link (e.g. https://myorg.atlassian.net/browse/SEC-123).
"https://myorg.atlassian.net/browse/SEC-123"
Deployment ID. Can be found at /deployments, or in your Settings in the web UI.
123
Response
OK
The external slug identifier for the ticket (e.g. SEC-123)
List of finding IDs that were successfully linked to the ticket
List of finding IDs where an existing ticket link was replaced
The internal ID of the linked ticket record
The URL of the linked ticket