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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

127 views 0 2
Read article

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