How to find a Jira issue by a keyword in Summary field using rest api? Thanks

Jit Sarkar May 23, 2020

I have an issue in Jira. Summary of that issue is "Jira testing". I want to search based on the 'Jira' word and then want to get ID of that issue. I tried with Get in servicenow->rest message

..../rest/api/3/issues/?jql=summary ~"Jira*"

but its showing as invalid query HTTP status 0. Also tried

.../rest/api/3/issues/?jql=summary ~Jira*

1 answer

1 accepted

1 vote
Answer accepted
Sebastian Krzewiński
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 23, 2020

Hi @Jit Sarkar 

 

I think you must use something like this: jql=summary%20~%20"JIRA-*" because errors are from spaces that are not code properly.

 TIP: to check how JQL query should look in REST API request use your browser. Write JQL query in JIRA GUI. After clicking Search button url will change and convert to version that you can use in REST API request.

 

Regards,

Seba

Jit Sarkar May 23, 2020

Hi Sebastian,

Thanks for your quick response. In Jira its coming as below

jql=summary%20~%20%22Jira*%22

I tried with that but now its coming as 404 error.

Jit Sarkar May 23, 2020

Sorry, I used rest/api/3/issues instead of rest/api/3/search. Its working now. Thank you so much

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events