Forums

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

Issue with multiselect field in search query

Himanshu Pupneja January 18, 2019

Hey Community members,

 

I have an Issue/key in JIRA, in which there is a multiselect field, and a value is selected in that field like below example.

field_name="DataCenter"

{value= "first"} 

{value= "second", selected} 

{value= "third"} 

And when I search an issue with jira api with query like DataCenter="first", then it returns 

response text = {"errorMessages":["The option 'first' for field 'DataCenter' does not exist."],"errors":{}}

 

but it works with other values like "second" and "third".

 

Do you know why this is happening?

 

Thanks in Advance!

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 18, 2019

Hello Himanshu,

Can you please check if the first option was not disabled from the select list? Note that an option could be only disabled and still exists in a select list.

To check this, follow the steps below:

- Navigate to JIRA Settings > Issues > Custom Fields

- Find your Select list and click to configure

- Check if the word (disable) is appearing in the field option like below:

Screen Shot 2019-01-18 at 12.31.36.png

We will be waiting for your answer.

Himanshu Pupneja January 18, 2019

Thanks Goncalves for your response.

That option was activated

We found that there were multiple fields with the same name. I added the key of the field in my query and it worked.

Sorry to bother you. This Issue can be closed

Thanks

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 18, 2019

I'm glad to know you were able to solve your issue, Himanshu.

Have a nice weekend!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events