Hi,
Trying to create create new issue using REST API.
Which i'm sending from the script runner:
def query = '{"fields":\
{"project":{"id":"10300"},\
"summary":"REST4",\
"description":"Creating",\
"issuetype":{"name":"Task"},\
"customfield_10002":"AP-533",\
"timetracking":{"originalEstimate":"0.25d"},\
"assignee":{"name":"igorgu"}}}'\
def curl = '/usr/bin/curl -D- -u <user>:<pass> -H \"Content-Type:application/json\" -X POST --data \''+ query +'\' <host>/rest/api/2/issue/ --insecure'
Printing and running the result of curl from the server does work.
But, from the coderunner console I get:
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0 100 13792 0 13792 0 0 62212 0 --:--:-- --:--:-- --:--:-- 62407
Seems like no error, but no new issue created
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.