Skip to content

Instantly share code, notes, and snippets.

@rightgo09
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save rightgo09/0c2ae1be3d9e59229e82 to your computer and use it in GitHub Desktop.

Select an option

Save rightgo09/0c2ae1be3d9e59229e82 to your computer and use it in GitHub Desktop.
JIRA API JSON
{
"fields": {
"project":
{
"key": "TEST"
},
"summary": "REST ye merry gentlemen.",
"description": "Creating of an issue using project keys and issue type names using the REST API",
"issuetype": {
"name": "Bug"
},
"labels": ["mylabel"],
"components": [{"name":"mycomponent"}],
"assignee": {"name": "r9"}
}
}
$ curl -D- -u r9:password -X POST -d @create_issue.json -H "Content-Type: application/json" http://localhost:8080/rest/api/2/issue/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment