Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Change issue status
- jira: uri={{server}} username={{user}} password={{passd}}
- issue={{issue.meta.key}} operation=transition status='51'
- tags:
- - jira
- OUTPUT
- TASK [Get an issue] ************************************************************
- changed: [localhost]
- TASK [Change issue status] *****************************************************
- fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed find valid transition for '51'"}
- CURL
- curl -D- -u REDACTED -X POST --data '{"transition":{"id":"51"}}' -H "Content-Type: application/json" https://url//rest/api/2/issue/XX-1111/transitions?expand=transitions.fields
- Enter host password for user 'aabab':
- HTTP/1.1 204 No Content
- Date: Tue, 13 Sep 2016 08:48:36 GMT
- Server: Apache-Coyote/1.1
- X-AREQUESTID: REDACTED
- X-ASEN: SEN-541537
- X-Seraph-LoginReason: OK
- X-ASESSIONID: xxxx
- X-AUSERNAME: abaaaaa
- Cache-Control: no-cache, no-store, no-transform
- X-Content-Type-Options: nosniff
- Content-Type: application/json;charset=UTF-8
- Set-Cookie: REDACTED; Path=/; Secure; HttpOnly
- Set-Cookie: REDACTED; Path=/; Secure
- Via: 1.1 xxx.xxx
- Content-Length: 0
- Connection: close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement