Advertisement
Guest User

Untitled

a guest
Sep 13th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. - name: Change issue status
  2. jira: uri={{server}} username={{user}} password={{passd}}
  3. issue={{issue.meta.key}} operation=transition status='51'
  4. tags:
  5. - jira
  6.  
  7. OUTPUT
  8. TASK [Get an issue] ************************************************************
  9. changed: [localhost]
  10.  
  11. TASK [Change issue status] *****************************************************
  12. fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed find valid transition for '51'"}
  13.  
  14.  
  15. CURL
  16.  
  17. 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
  18. Enter host password for user 'aabab':
  19.  
  20. HTTP/1.1 204 No Content
  21. Date: Tue, 13 Sep 2016 08:48:36 GMT
  22. Server: Apache-Coyote/1.1
  23. X-AREQUESTID: REDACTED
  24. X-ASEN: SEN-541537
  25. X-Seraph-LoginReason: OK
  26. X-ASESSIONID: xxxx
  27. X-AUSERNAME: abaaaaa
  28. Cache-Control: no-cache, no-store, no-transform
  29. X-Content-Type-Options: nosniff
  30. Content-Type: application/json;charset=UTF-8
  31. Set-Cookie: REDACTED; Path=/; Secure; HttpOnly
  32. Set-Cookie: REDACTED; Path=/; Secure
  33. Via: 1.1 xxx.xxx
  34. Content-Length: 0
  35. Connection: close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement