I have passed following jason string to update resolution description via REST but no sign of working it.
{\"update\": {\"resolution description \": [{ \"add\": { \"body\": \"" + errors + "\" }}]}}
errors is a variable with hard-coded value.
Community moderators have prevented the ability to post new answers.
The fields that can be updated, in either the fields parameter or the update parameter, can be determined using the /rest/api/2/issue/{issueIdOrKey}/editmeta resource.
For customfield I think instead of Update you need to use fields in JSON
Replace below code with Resolution description field id and try
{"fields": { "customfield_10000": "This is a shorthand for a set operation on a text custom field" } }
Taha
this custom filed should be updated while the "resolution" changed to "fixed" so I used the "transition" rest api call to do it.the problem is the resolution field is updated as "fixed" but the custom field is not updated as expected. can't I change those two field with "transition" rest api call? thanks in advance!.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It would have been more clear if you mentioned about transition earlier. Anyways now for transition the fields that can be set, in either the fields parameter or the update parameter can be determined using the /rest/api/2/issue/{issueIdOrKey}/transitions?expand=transitions.fields resource. If a field is not configured to appear on the transition screen, then it will not be in the transition metadata, and a field validation error will occur if it is submitted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So basically you need this code { "fields": { "customfield_id": {"This is a shorthand for a set operation on a text custom field"}, "resolution": {"name": "Fixed"} }, "transition": { "id": "5" } }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
one question: How can you use /rest/api/2/issue/{issueIdOrKey}/editmeta when it has only get method??
I check it one more time with REST BROWSER and it has only get! So how can you update with get??
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is Resolution description customfield ?
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.