Create Issue keys
Create Issue keys are available in API Key Manager for Jira.
A Create Issue key can do exactly one thing: create issues in one project. Use it for contact forms, monitoring tools, chat bots or anything else that should be able to file tickets and nothing more.
Creating one
Click Create Issue Key (the app loads your projects first).
| Field | Required | Notes |
|---|---|---|
| Description | yes | A meaningful, unique name for the key. |
| Valid Until | no | Defaults to 30 days from today. |
| Project | yes | The only project this key may create issues in. |
There are no method or endpoint fields: they are fixed.
What the key is allowed to do
- Method:
POSTonly. - Endpoints:
/rest/api/3/issueand/rest/api/2/issue, matched exactly. Sub-resources such as/rest/api/3/issue/DEV-1/notifyor/rest/api/3/issue/DEV-1/commentare not reachable. - Project: the request body must set
fields.project.idto the id of the key's project, as a string. A request for another project, or one that identifies the project by name or key instead of id, is rejected with403.
In the key list the key shows as Create Issue, with the project name in place of the endpoint list.
Example
curl -X POST <YOUR ENDPOINT URL> --header "apikey: <YOUR API KEY>" --data '
{
"options": {
"method": "POST",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json"
},
"body": {
"fields": {
"project": { "id": "10005" },
"summary": "Printer on floor 3 is jammed",
"description": "Created through a Create Issue key",
"issuetype": { "id": "10017" }
}
}
},
"url": "/rest/api/2/issue"
}'
Replace 10005 with your project's id and 10017 with an issue type id that is valid in that project.
Open https://<your-site>.atlassian.net/rest/api/3/project/<KEY> in the browser while logged in to see a project's id, or /rest/api/3/issuetype for issue types.
Both /rest/api/2/issue and /rest/api/3/issue are allowed. The sample uses v2 because it accepts a plain-text description; the v3 endpoint expects an Atlassian Document Format object there.