Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #!/bin/bash
  2. echo "$1"
  3. echo "$2"
  4. echo "$3"
  5. echo "$4"
  6. echo "$5"
  7. echo '{
  8. "transactions": [
  9. {
  10. "type": "title",
  11. "value": "$1"
  12. },
  13. {
  14. "type": "description",
  15. "value": "$2"
  16. },
  17. {
  18. "type": "status",
  19. "value": "$3"
  20. },
  21. {
  22. "type": "priority",
  23. "value": "$4"
  24. },
  25. {
  26. "type": "owner",
  27. "value": "$5"
  28. }
  29. ]
  30. }' | arc call-conduit --conduit-uri https://mydomain.phacility.com/ --conduit-token mytoken maniphest.edit
  31.  
  32. ./test.sh "test003 ticket from api post" "for testing" "open" "high" "ahsan"
  33.  
  34. test003 ticket from api post
  35. for testing
  36. open
  37. high
  38. ahsan
  39. {"error":"ERR-CONDUIT-CORE","errorMessage":"ERR-CONDUIT-CORE: Validation errors:n - User "$5" is not a valid user.n - Task priority "$4" is not a valid task priority. Use a priority keyword to choose a task priority: unbreak, very, high, kinda, triage, normal, low, wish.","response":null}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement