File tickets from another system
Jira only
Scenario: a monitoring tool, contact form or chat bot should open Jira issues in one project, and must not be able to do anything else.
Setup
- Click Create Issue Key.
- Description:
Monitoring – alerts. - Project: the project the tickets belong in.
- Choose a Valid Until date that fits, and put a reminder in your calendar to rotate the key before then.
Call it
{
"options": {
"method": "POST",
"headers": { "Content-Type": "application/json", "Accept": "application/json" },
"body": {
"fields": {
"project": { "id": "<PROJECT ID>" },
"summary": "Disk usage above 90% on db-3",
"issuetype": { "id": "<ISSUE TYPE ID>" }
}
}
},
"url": "/rest/api/2/issue"
}
Why this is safe
If the key leaks, an attacker can only create issues in that single project. They cannot read issues, edit or delete anything, or reach any other endpoint, including sub-endpoints of /issue such as notifications or attachments. See Create Issue keys.