How to search for feature id using jql in rest api?

I'm trying to write a java interface for rest api's of jira, where I want to have a where clause which contains feature id as input. But when I look at that field, it is a custom defined field.

When I pass the id of this field in where clause, I end up getting this error :

{"errorMessages":["Field 'customfield_104' does not exist or you do not have permission to view it."],"errors":{}}

The field do exist, so I guess the permission is the issue. How would I solve this problem?
I'm gracefully able to login into the JIRA system, without any authentication error.

1 answer

0 vote

Actually, I very much doubt that field exists. Customfield tags are usually 5 digits long and start at 10000. Have another look in your installation, I think you'll find it's customfield_10004 or customfield_10400 !

that was just an example. actual one is 10003. and i have checked the obtained json for other api. it does exist !!!

mmm. Check the field exists in the project/issue-type, and that the user that you are logging in as can see it too.

checked that.. it does exists.. and user is able to see, if the issue is been accessed using jira website.

Can your REST see any other custom fields?

nope. it doesnt. the same error comes for other fields as well.

Good, so it's a general error and not a field-specific one. Next question is if your REST can see system fields? Like *summary* for example?

if im not using custom field in query , they can be seen in output

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,319 views 14 20
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot