Forums

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

How to use MultiSelect Custom field to create an issue in Jira service desk via rest api

Pushpkant Garg
Contributor
May 4, 2020

I am trying to create an issue using Rest API in Jira Service Desk Project. My script is working fine If I don't use the MultiSelect List field in it. However, it fails when try to create issue with the MultiSelect Custom Field.

 "customfield_11320": { "[{"value": "121"},{"value": "129"}]" }

Error:

{"message":"Unexpected character ('v' (code 118)): was expecting comma to separate OBJECT entries\n at [Source: org.apache.catalina.connector.CoyoteInputStream@7198ba04; line: 51, column: 28]","status-code":500,"stack-trace":""}

 Can you please help me with what is wrong with this?

Hosting Environment: Atlassian Cloud

1 answer

1 accepted

1 vote
Answer accepted
Pushpkant Garg
Contributor
May 4, 2020

I have found the solution on my own. Here is a reference for the people who may encounter a similar issue in the future.

 

"customfield_11320": [ {"value": "121"}, {"value": "145"} ],

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events