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 votes

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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

25,126 views 2 7
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