Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "$1"
- echo "$2"
- echo "$3"
- echo "$4"
- echo "$5"
- echo '{
- "transactions": [
- {
- "type": "title",
- "value": "$1"
- },
- {
- "type": "description",
- "value": "$2"
- },
- {
- "type": "status",
- "value": "$3"
- },
- {
- "type": "priority",
- "value": "$4"
- },
- {
- "type": "owner",
- "value": "$5"
- }
- ]
- }' | arc call-conduit --conduit-uri https://mydomain.phacility.com/ --conduit-token mytoken maniphest.edit
- ./test.sh "test003 ticket from api post" "for testing" "open" "high" "ahsan"
- test003 ticket from api post
- for testing
- open
- high
- ahsan
- {"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