Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
JIRA API call to create ticket.txt
1. create basic authentication header : https://developer.atlassian.com/server/jira/platform/basic-authentication/
by base 64 encoded string of username:password (your jira username and password)
2. Add authorization header to the request:
Authorization: Basic ZnJlZDpmcmVk
3. Content-Type: application/json
4. request url: http://my-jira-url.com/rest/api/2/issue/
5. request body:
{
"fields": {
"project":
{
"key": "CRS"
},
"summary": "REST Bug EXAMPLE",
"description": "Creating an issue via REST API",
"issuetype": {
"name": "Bug"
}
}
}
In the issuetype there will be following three values:
Bug
Improvement
New Feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.