Skip to main content

Create Issue keys

Jira only

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).

FieldRequiredNotes
DescriptionyesA meaningful, unique name for the key.
Valid UntilnoDefaults to 30 days from today.
ProjectyesThe 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: POST only.
  • Endpoints: /rest/api/3/issue and /rest/api/2/issue, matched exactly. Sub-resources such as /rest/api/3/issue/DEV-1/notify or /rest/api/3/issue/DEV-1/comment are not reachable.
  • Project: the request body must set fields.project.id to 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 with 403.

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.

Finding ids

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.

v2 or v3?

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.