Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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: 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
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you