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

Last time when I checked the search engine, probably I missed entries on querying for issues something like:"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 8 hours ago in United States

Confluence Security Advisory

Good morning Members, Not sure if you are aware. Please read the following: More details: https://co...

24 views 1 0
View post

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