Search an issue by a word in the summary : Python + JIRA library

Sunesh M S August 17, 2018

Hi All,

I am using Python with JIRA library.

Suppose, I have some issues related to chatbot.  so how can I list out all issues related to chatbot.  The output should be 3 issues (see below example) even there is so many issues.

Example :

Summary 1 : Chatbot env setup.

Summary 2 : configured the chatbot in XX.XX.XX.XX server

Summary 3 : Integration testing for chatbot in stage evn. 

 

Thanks in Advances,

Maadi

 

1 answer

0 votes
Mauricio Karas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 20, 2018

Hey, Maadi.

You could use the following REST API call:

GET /rest/api/2/search?jql=summary~"chatbot"

This gets the result issues from the JQL using the query string parameter.

As for Python, if you're using the jira-python library, you can use the following method:

issues_in_proj = jira.search_issues('project=PROJ')

Keep in mind that Jira has pagination and it will return a maximum of 50 issues in the result object. You can change the max using the "maxResults" parameter.

Kind regards,
Maurício Karas

Suggest an answer

Log in or Sign up to answer