Unable to update Story Points via API

David Whitlock September 12, 2023

Hello,
I need to update an issue's Story Points via the API. When I attempt to, I am getting an error returned {"errorMessages":[],"errors":{"customfield_10004":"Operation value must be a number"}}

This is the payload I am using that gives me this error: {"fields":{"customfield_10004":{"value":1}}}

Does anyone have an idea as to what I may be doing wrong?

 

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 12, 2023

Hi @David Whitlock 

Please try doing that without the value attribute, as described here:

https://confluence.atlassian.com/automation/advanced-field-editing-using-json-993924663.html

{
"fields": {
"customfield_10004": 1
}
}

Kind regards,
Bill

Prakash Jeganathan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 19, 2024

@Bill Sheboy : I tried what you have suggested. but getting the same issue. {"fields":{"customfield_10039":1}}.  

Error message : "Field 'customfield_10039' cannot be set. It is not on the appropriate screen, or unknown."

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 20, 2024

Hi @Prakash Jeganathan -- Welcome to the Atlassian Community!

This is an older thread, and so I recommend creating a new question to ensure the maximum number of people see it to offer suggestions.  When you create your question, please include an image of the complete rule, any relevant actions, and an image of the audit log details showing the rule execution.  Those will provide context for the community to help.

Until we see those...

That error indicates the field you are trying to set (such as story points) is not configured on the issue edit view for that issue type.  Please check that it is present.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events