i am trying to update value to customfield in jira using curl but its not posting. I am using following command
curl --insecure -u "username":$(cat password.txt) -X POST --data '{"fields":{customfield_10325":"value":"test1"}}' -H "content-Type:application/json" "url"/rest/api/2/issue/Test
Test is my issue
I did not try it. But at a first glance it look a like a syntax error in your post data. Try to wrap "value":"test1" in curly braces and add an opening quotation before customfield like this:
{"fields":{"customfield_10325": { "value":"test1"} } }
Additionally you should specify a valid issue key. Test does not look valid in my eyes. Test-123 looks better, as each issue always has a unique numerical suffix.
Tried the above .does not throw out any error but doesn't post too..Test 1 is the value i wanted to post in the customfield
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.