Forums

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

How to inform an object custom field with the API REST

Diego Manríquez May 27, 2024

Hello everyone,

I'm trying to create an issue using the JIRA API REST. In this particular JIRA, there's a field that is mandatory in order to create the issue but it has a strange format. When I perform a GET this is what I retreived:

 

"customfield_XXXX": [ "{KEY}" ]
But when I try to update this customfield I need this format:

"customfield_xxxx": [ { "key": "{KEY}" } ]

But for some reason when I try to create an issue with this customfield, this error shows up:

"errorMessages": [],
"errors": "customfield_xxxx": "{Name of the customfield} is mandatory." }
Is like it doesn't recognize the value. Can somebody take a look please?

1 answer

0 votes
Neil Mansilla
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 4, 2024

Hi @Diego Manríquez Can you share exactly what your POST body looks like? What type of custom field are you trying to update? (e.g. single line custom field, multi-select list, etc.)

Suggest an answer

Log in or Sign up to answer