Last active
November 4, 2017 15:45
-
-
Save kmurudi/bb00eebf65b9fdc490b2078100f65252 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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" | |
| } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "update": { | |
| "comment": [ | |
| { | |
| "add": { | |
| "body": "Issue status changed to To-Do" | |
| } | |
| } | |
| ] | |
| }, | |
| "transition": { | |
| "id": "11" | |
| } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "update": { | |
| "comment": [ | |
| { | |
| "add": { | |
| "body": "Issue status changed to In-Progress" | |
| } | |
| } | |
| ] | |
| }, | |
| "transition": { | |
| "id": "21" | |
| } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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