Hi all,
I have a file with some value in a JSON format. (Obtained with an api rest curl GET from a text area custom field)
{"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations","id":"888051","self":"https://jira.com/rest/api/2/issue/888051","key":"KEY-0","fields":{"customfield_13630":"Date:: 2018-06-25 14:33:06 +0200 (Mon, 25 Jun 2018)
Author:: username
Message:: This is a json test"}}
Can I use any api rest method to post it into a custom field directly?
Thanks in advance!
Best Regards
Ok solved:
curl -k -D- -u "user:pass" -X PUT --data @file.json -H "Content-Type: application/json" JIRAURL
Regards
Hi Albert,
I have the same requirement, can you please share the complete steps you took to put the json response into Jira field?
Would appreciate your help on this.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello!
This is an example for editing a text field customfield_40494 in a BUG-569. First of all, I create the json file like this:
{"fields":{"customfield_40494":"EXAMPLE TEXT"}
After that I upload changes to the BUG-569 using the following command:
curl -k -X PUT --data @jsonFile -H "Content-Type: application/json" "https://JIRAURL/rest/api/2/issue/BUG-569?fields=customfield_40494";
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.