I'm currently working on a backend integration that creates Jira issues using the Jira REST API v2, specifically the /rest/api/2/issue and /rest/api/2/issue/bulk endpoints.
I'm able to successfully create issues and populate several custom fields without any problems (e.g., customfield_10201, customfield_10220, customfield_10500, etc.).
However, I'm facing an issue specifically with the custom field 10107, which in our instance corresponds to the Team field.
When I try to send the value for customfield_10107, Jira responds with an error indicating that the operation must be a string, or that the provided payload is invalid for this field.
The same structure works perfectly for other custom fields of type single select / option field.
Sending the field as { "id": "xxxx" }
Sending the field as { "value": "..." }
{ "name": "..." }How can I correctly populate customfield_10107 through the REST API?
Is this field part of some internal/Team-managed functionality that doesn't allow writing via REST API?
Is this field restricted by schema, permissions, or internal Jira Product Discovery / Advanced Roadmaps mappings?
I am creating issues from a backend service using Python (FastAPI).
All other custom fields work normally using the same logic.
Only customfield_10107 fails consistently.
This field is mapped to a "Team" field, used in our organization.
I suspect it may be a special type of field managed by Jira Align / Advanced Roadmaps / Teams management.
If anyone has experience with this specific field type, or knows whether Team fields can be set via REST API, I would really appreciate some guidance.
Thanks in advance!
From what I can tell - you are correct that the "Team" field is a special type. Its not a string or an ID ... its a Team
What I don't know is whether that means its what the REST Documentation is calling a "plan only team" (though I suspect it is).
Check this documentation.
And also note that every REST API Reference page in Atlassian has Postman and Swagger links at the top oif the page. You should be able to find the right payload to create with there assuming the documentaion I am point you to isn't helpful
Hello @Raul Aguirre
Welcome to the Atlassian community.
Your post tags indicate that you are using Data Center. Can you confirm for us that is accurate and you are not using Jira Cloud? If you click on the Help icon in Jira (near your avatar) and select About Jira what information do you get for the version of Jira. If you are using Jira DC then you should see a number like 9.12.17 (for example). If you are using Jira Cloud there will not be a version number.
Are you a Jira Administrator for this environment?
How did you determine that 10107 is the correct ID for the field? It is possible to have multiple fields with the same name in Jira (both DC and Cloud), so it is important to ascertain if you have the correct field ID.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Additionally, I see that your post tags indicate you are using Data Center, but the API endpoint references you provided are for Jira Cloud rather than Data Center.
Can you confirm for use whether you are using Jira Cloud or Jira Data Center?
If you are using Jira Data Center, what version are you using?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As a disclaimer, I am using Jira Cloud and not Data Center. With that out of the way...
Team is one of those fields where you set it in the JSON with an ID, but do not name the attribute. For example:
"customfield_10107": "abc-123-456-def"
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.