Forums

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

How can I fetch the tickets matching a specific description using the API?

Rahul Naik January 3, 2018

I am able to get/update the ticket details if the ID is known. So, I want to get the ID of the ticket that has certain text in its description. Can you tell which end point I can use for this? A sample query would be helpful.

Ex: for a case where I want to fetch the ticket(s) having "this text" in its description.

1 answer

1 vote
Alexey Matveev
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.
January 3, 2018

Hello,

Do you mean that you use REST API?

JQL would look like

description ~ "this text"

Then you could use search rest call to get all issues by providing the query above

jira/rest/api/2/search?jql=description ~ "this text"

then you can iterate over received issues and update them as you updated before.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events