Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

curl execution doesn't effect JIRA

igor gumush October 24, 2018

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

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events