7

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!

Alex Filatov
  • 2,084
  • 3
  • 30
  • 32
Nicu Staff
  • 71
  • 1
  • 2

1 Answers1

10

Use filter ID in jira.search_issue.

for i in jira.search_issues('filter=25471'):
    print i.key
ThePavolC
  • 1,518
  • 1
  • 15
  • 23
  • 1
    Thanks a lot. This is exactly what I needed. I was sure that should be something easy :). – Nicu Staff May 12 '15 at 06:08
  • Note that this only returns the first 50 issues by default, you must use issues = jira.search_issues('filter=25471', maxResults=300) if you want more. – David Doria Apr 17 '21 at 11:31