Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python jira return the content of a filter

Tags:

python-jira

I'm new in jira python and I want to have a list with tickets obtained with an existing filter.

I tried jira.filter(id) but instead receiving the list with issue, I received only the name of the filter. Using jira.search_issue is working, but because my filter can be change by other guys I need something that will take in account those changes of filter content. Any ideas? Thanks!

like image 544
Nicu Staff Avatar asked May 11 '15 13:05

Nicu Staff


People also ask

How to use Jira with Python?

Using JIRA library for Python. Using the JIRA Rest API. The configuration, required, in the Jira software tool, is as follows: Create a Jira user account. Create a domain name, add a project, and, record some issues, or, bugs. Our task is to fetch, issues data, using Python code.

How do I find all filters in Jira?

Finding Jira Filters. To find the filters you’ve already created, go to Issues > your favorite issues and the option to “Manage filters”. Alternatively, you can go to the Filters dropdown to select starred filters or to “View all filters”. To call up new results for your filter, just navigate here and click on the filter’s name.

How to see issues from a specific project in Jira?

To see issues from a specific project, you can search for the project in the “Basic” search list: You can then further configure your Jira filter by adding additional search criteria. For instance, you can filter on the basis of specific statuses – but you can also select values linked to users, dates, issue descriptions, and so on.

What is the use of Jira API?

It is an efficient way, of fetching, JIRA-related data. It can be used, in both, JIRA library, and, API approach, for obtaining data. This involves, forming queries, to filter information, regarding, relevant Bugs, Projects, Issues etc.


1 Answers

Use filter ID in jira.search_issue.

for i in jira.search_issues('filter=25471'):
    print i.key
like image 113
ThePavolC Avatar answered Sep 20 '22 21:09

ThePavolC