Create Jira tickets
Create Jira tickets for your findings. You can create tickets by passing in a list of issue_ids or by passing in filter query parameters to dynamically select findings. If passing in filters, Semgrep will skip already ticketed findings. This endpoint is synchronous, so it may take some time for your request to resolve. Unlike creating tickets in-app, if ticket creation fails we won’t automatically retry. This endpoint accepts a limit parameter (defaulting to 20) to limit the number of tickets created per request. If you specify a list of issue_ids greater than this limit, or your selected filters match on a number of issues greater than this limit, issues that were not ticketed are included in the Failed part of the response object. You can send another request to create tickets for these skipped issues. By default, findings belonging to the same repository and the same rule will be grouped together into a single Jira ticket. You can override this using the group_issues query parameter. Up to 50 issues can be grouped into a single ticket. You can optionally override the Jira project you create tickets in by passing in a Jira project ID as jira_project_id (the numeric ID rather than the project key). You can fetch this ID using the Jira API.
Documentation Index
Fetch the complete documentation index at: https://docs.semgrep.dev/llms.txt
Use this file to discover all available pages before exploring further.
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 slug. Can be found at /deployments, or in your Settings in the web UI.
Body
Create ticket request
Type of findings to create tickets for.
sast, sca, secrets "sca"
The autotriage verdict to filter by
true_positive, false_positive "true_positive"
List of categories to filter by
["security", "performance"]
List of component tags to filter by
["user authentication", "user data"]
List of confidence levels to filter by
low, medium, high "high"
Filter by dependency name. Only applies for sca findings.
["lodash", "express"]
Deployment slug. Can be found at /deployments, or in your Settings in the web UI.
Filter by EPSS probability (likelihood of exploit). Only applies for sca findings.
["high", "medium"]
Filter by exposure (reachability type). Only applies for sca findings. Reachability is the ability of an attacker to access a vulnerability in a system.
["reachable", "always_reachable"]
Whether or not to group findings from the same rule and repository into a single ticket. Defaults to true.
true
Whether to include historical findings. Only applies for secrets findings. Defaults to true.
true
An array of issue IDs to act on. If this is not provided, an issue filter should be provided.
[123, 456]
Optional numeric Jira project ID to associate with the created tickets. If not specified, defaults to the project configured in your integration settings. You can fetch this ID using the Jira API.
12345
Max number of tickets to create. Must be an integer between 1 and 20. Defaults to 20
20
List of policy modes to filter by
[
"rule-board-block",
"rule-board-pr-comments",
"rule-board-audit"
]
List of policy modes to filter by
["monitor", "block"]
Filter by whether a finding is only available with Semgrep Pro features. Only applies for sast findings.
true
List of project tags to filter by
["my_project_tag_1", "my_project_tag_2"]
Branch reference to filter by
"refs/pull/1234/merge"
List of repository names to filter by
["myorg/repo1", "myorg/repo2"]
Filter by repository visibility. Only applies for secrets findings.
["public", "private"]
List of rule names to filter by
[
"typescript.react.security.audit.react-no-refs.react-no-refs",
"ajinabraham.njsscan.hardcoded_secrets.node_username"
]
List of Semgrep Registry rulesets to filter by
["owasp-top-ten", "default"]
Filter by type of secret (typically provider-related). Only applies for secrets findings.
["Github", "Heroku", "AWS"]
List of severities to filter by
["low", "high"]
Epoch timestamp in seconds. Filters using the relevant_since field: the timestamp when this finding was detected by Semgrep (the first time, or when reintroduced).
1717334400
The status to filter by
open, fixed, ignored, reviewing, fixing "open"
Filter by transitivity of a dependency. Only applies for sca findings.
["transitive", "direct"]
List of triage reasons to filter by
["acceptable_risk", "false_positive"]
Filter by whether a secret could be validated. Only applies for secrets findings.
["valid", "invalid"]