Forums

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

How do I add a custom field when creating a ticket through the Jira Python API?

Chris
Contributor
October 22, 2019

I've been able to successfully create a ticket in JIRA and have been for a while now, however I've recently run into an issue with creating a ticket in a different project that has a custom field. After some research, I've identified the field as customfield_10125, however when I try to populate that with the following:

'customfield_10125': {'Teams': 'Application Ops'}

or 

"customfield_10125": { "name": "Application Ops" }

or

"customfield_10125":  "Application Ops"

etc...

It will just throw up the following error:

response text = {"errorMessages":[],"errors":{"customfield_10125":"Could not find valid 'id' or 'value' in the Parent Option object."}}

I was really hoping that someone could point out my syntax error and help me out with this.

1 answer

1 accepted

1 vote
Answer accepted
Chris
Contributor
October 22, 2019

Clearly I'm a dumb... anyway, it worked when I changed "name" to "value". I can't believe that took all day to try.

'customfield_10125':
{'value': 'Application Ops'}
Dev finder July 24, 2022

hi @Chris .
Do you find any other ways of retrieving the value, i was getting data was not an array?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events