Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Jira api. Send POST - "{\"errorMessages\":[],\"errors\":{\"Concession\":\"data was not an array\"}}"



I have to send a json to the jira api to create a ticket/issue.

Url api:

I add key and required fields of the project.


I have this field in my Jira tickets when I look into the XML file to see the structure ad fields:


<customfield id="customfield_10020" key="com.atlassian.servicedesk:vp-origin">
      <customfieldname>Request Type</customfieldname>
       <customfieldvalues> </customfieldvalues>


1. The field "customefield_10020" features: are as follows:

name: Request Type

3 values: 

1. Request

2. Done

3. Question


The json below gives me an error:


    "customfield_10020": "Request",



[\"Request Type: Invalid client request value\"],\"errors\":{}}


2. And if a I my json for this field is


"customfield_10020": {
                "key": "customfield_10020",


It gives this error:

"{\"errorMessages\":[],\"errors\":{\"Concession\":\"data was not an array\"}}"



What json format should I send for this field customized?. I'm confused




1 answer

0 votes

Hello @jg ,

Thanks for reaching out, and looking at the error response this is hanging up on the request type indicating the project type is Jira Service Management, and the endpoint that you are using is the create method for Jira Software.

Jira Software and Jira Service management have different approaches and requirements for creating issues.

The endpoint you want to look at is "Create customer request" via:


Thanks for the anwser,.

That means I have to wite my json like this:

"customfield_10020": [

               "key": "customfield_10020"



However, the field customfield_100020 is a type "requestType", so can I values to a "requestType" from the endpoint or

What would it be the json?, ie, or some fields are left?

"customfield_10020": [

               "serviceDeskId": "2",

               "requestTypeId": "98",




Hello @jg ,

Modifying the Request Participant is done entirely from the Service Management API

Adding a request participant to a request in the Service Management API is done via the endpoint:

And Removing a request participant is done via:


Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you