Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Searching for an Issue by Field

fza July 12, 2019

Using the REST API, is there a way I can get an issue by searching for a value in one of its fields?

1 answer

0 votes
Warren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 12, 2019

Hi @fza 

You could use the search call as shown here - it accepts any JQL, so as long as you're able to articulate the query, it should work, something like

/rest/api/3/search?jql=fieldxx~"find_string"

This will most likely work for text-type fields, not too sure for others

fza July 12, 2019

Will this work with custom fields as well?

Warren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2019

Yes, you can use

custom_field_12345 ~ "find_string"

for text fields

Like fza likes this

Suggest an answer

Log in or Sign up to answer