How to update customfield of an issue using Rest API


I’ve some problems to update the customfield_10006 which is Story Points field of my issues.

I use http://localhost:8081/rest/api/2/issue/SCRUM-24 to PUT data below:

	"fields": {
	    "customfield_10006" : 3


  "errorMessages": [],
  "errors": {
    "customfield_10006": "Field 'customfield_10006' cannot be set. It is not on the appropriate screen, or unknown."


From the docs:

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.
If a field is not configured to appear on the edit screen, then it will not be in the editmeta, and a field validation error will occur if it is submitted.

Have you determined that customfield_10006 is able to be edited using the editmeta resource?

You’re trying to use the core platform API to set the Story Points field. The field must be on the appropriate screen (Create/Edit/Transition) to set the field. You can figure this out using the createMeta/editMeta//transitions?expand=transitions.fields resources.

Instead of adding the field to your Edit Screen, you could consider using the estimateIssueForBoard resource instead: This would probably make the most sense based on your description.

I were using wrong screen on this custom field.
Now it’s working.