Skip to content

Instantly share code, notes, and snippets.

@kmurudi
Last active November 4, 2017 15:45
Show Gist options
  • Select an option

  • Save kmurudi/bb00eebf65b9fdc490b2078100f65252 to your computer and use it in GitHub Desktop.

Select an option

Save kmurudi/bb00eebf65b9fdc490b2078100f65252 to your computer and use it in GitHub Desktop.
curl -D- -u scrumuser2017@gmail.com:scrumster2017 -X POST --data @C:/HackNC17/test.json -H "Content-Type: application/json" https://scrumster.atlassian.net/rest/agile/1.0/sprint/1/issue
//test.json
{
"issues": [
"AT-8"
]
}
# ScrumJIRA
JIRA Rest API calls
CURL to make POST call to move task --->
use transitions --
//command to run ->
//replace path of file by ur own path - test.json - it has the comment and task transition id - e.g. 11 - means to "TO-DO", 21- means "IN-PROGRESS", 31 - means to "DONE"
curl -D- -u scrumuser2017@gmail.com:scrumster2017 -X POST --data @C:/NCSU_CSC519_DevOps/test.json -H "Content-Type: application/json" https://scrumster.atlassian.net/rest/api/2/issue/SD-33/transitions?expand=transitions.fields
//contents of test.json --->
{
"update": {
"comment": [
{
"add": {
"body": "Issue status changed to Done"
}
}
]
},
"transition": {
"id": "31"
}
}
{
"update": {
"comment": [
{
"add": {
"body": "Issue status changed to To-Do"
}
}
]
},
"transition": {
"id": "11"
}
}
{
"update": {
"comment": [
{
"add": {
"body": "Issue status changed to In-Progress"
}
}
]
},
"transition": {
"id": "21"
}
}
{
"update": {
"comment": [
{
"add": {
"body": "Issue status changed to Done"
}
}
]
},
"transition": {
"id": "31"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment