Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to update customfield_10004

Harish Ramachandra
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!
August 8, 2019

How do I set the value of customfield_10004 (Story Points) for an issue

I created an issue from jira shell python and that issue is under an epic.

I tried updating through issue.update() function in jira python and it gives the following error.

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

I checked in the screen and the field is present

The function call I did:

i1.update(fields={'customfield_10004':3.14}) 

i1 is the issue object (Task)

1 answer

1 accepted

1 vote
Answer accepted
Mohamed Benziane
Community Champion
August 9, 2019

Hi @Harish Ramachandra 

 

This error message mean that the customfield is missing on your screen, in the jira interface, when you create an issue do you have this customfield ? check the metadata do be sure that this field is on you create screen.

 

https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-discovering-meta-data-for-creating-issues-6291669/

Harish Ramachandra
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!
August 18, 2019

@Mohamed Benziane  Thank you for your quick response. How to check the metadata and put the storypoints field if it's not already there?

Mohamed Benziane
Community Champion
August 21, 2019

The easy soluton is to go to the jira UI, create an issue and look at the field, if the story point isn't here so you need to add it.

To add it you need to know wich screen is use for this issues (look at the screen scheme) and add the field story point to the create screen at least.

 

Hope this helps.

Suggest an answer

Log in or Sign up to answer