Creating Jira tickets
Automatically create Jira tickets from FOSSA issues without using the UI.
1 min readUpdated Jul 10, 2026
Enterprise feature
Available on: Business, Enterprise.
Overview
This recipe shows how to create Jira tickets from FOSSA issues programmatically, without going through the UI.
Note
- A FOSSA API token with Full access. See Authentication.
- A configured Jira integration in FOSSA.
- The Jira project ID and issue type you want to use.
Exporting issues to Jira
- 1
Fetch the issue IDs you want to export
Use the Managing issues guide to list the relevant issues and extract their IDs:
Shellcurl -G 'https://app.fossa.com/api/v2/issues' \ -d 'category=vulnerability' \ -H 'Authorization: Bearer YOUR_API_KEY' | jq -r '.issues | .[] | .id' - 2
Submit a PUT request to create the tickets
Pass the issue IDs in the query string and the Jira configuration in the request body:
Shellcurl --request PUT \ --url 'https://app.fossa.com/api/v2/issues?category=vulnerability&scope[type]=global&ids[0]=12345&ids[1]=67890' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "type": "export", "ticket": { "type": "jira", "title": "Security vulnerability found", "description": "Please review and remediate.", "trackerId": "PROJ", "jiraId": "10001", "issueType": "Bug", "labels": ["security", "fossa"] } }'
Note
The description field supports Markdown and can be up to 32,767 characters.