How to get the issue details for a project based on a Customfield value using REST API and/or JQL? Edited

I would like to search for reported issue and its status based on a customfield value. Is it possible to do that with REST API and /or JQL?

1 answer

This widget could not be displayed.

Last time when I checked the search engine, probably I missed entries on querying for issues something like: https://xxxxxx.atlassian.net/rest/api/latest/search?jql=project="SomeProject" AND customfield_10XXX ="SomeValue". My bad! Can you kindly point me to such an entry/discussion?

You've answered your own question.

I also thought it was a straight forward query. But, unfortunately it is not working. I was looking disparately looking for a clue on how to format the query to pull the issues for a project based on a customfield. I tired every combinaton possible for hours with no luck. I am simply able to pull issues based on all predefined searchable fields but not based on any of the customfields. I wanted to know what am I missing. I would very much appreciate if your could post a working example or guide me through. 

Ok, try running the query you want in the UI, using the advanced search option so you have the plain text of the JQL you want.

This can be fed straight into the REST call to run the same query.

I figured out the solution. The query should be like: project= SomeProject AND text ~ "AA0000123"

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday 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...

50 views 0 1
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