Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

REST API error

Arti Pathare October 16, 2020

When using JQL with custom fields for searching for issues in Jira Cloud ServiceDesk, REST API responds with error:

"Field 'customfield_xxxxx' does not exist or you do not have permission to view it."

Is there some field configuration that needs to be done for this to work?

 

User has Administrator permissions to perform the search.

1 answer

1 accepted

0 votes
Answer accepted
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 16, 2020

hi @Arti Pathare 

what endpoint are you using? Can you share details of the HTTP Request?

Arti Pathare October 16, 2020

It is /rest/api/2/search  POST

with jql as: customfield_10041= \"abcd\"

Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 16, 2020

Hi @Arti Pathare I tried to test it and even in UI you have to use name of the field. For example when I have a field Impact of Single select type, I have to use following body in the request

{"jql":"\"Impact[Dropdown]\"=\"Significant / Large\""}

You can check it in your Advanced Issue Search and then to use the prepared query in your HTTP Request.

Like Arti Pathare likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events