Have the below script :
That is returning a "Bad Request".
However, I have esentially the same request working via curl.
curl -D- -H
"Authorization: Basic xxxxxxxxxxxx1bXBraW5zMDQh" -X POST --data
"{ """fields""": { """project""": { """key""": """DWH""" }, """summary""": """REST test 11111.""", """description""": """test""", """issuetype""": { """name""": """Data Requests""" }
,"""components""":[{ """name""":"""Data Warehouse"""}] , """fixVersions""":[{"""name""":"""NA"""}]} }" -H "Content-Type: application/json"
https://jira.xxxxxxxxx.com/rest/api/2/issue/
Can anyone see where I am going wrong?
Many thanks!
Hello Neil,
please, is there anything in your log file that could point us in some direction? Otherwise I would try to start low and incrementally enhance your code:
Kind Regards,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.