0

I have a script which scrapes info from Jira based on the filters I set up in Jira. Currently it just prints the Key, but how do I print the summary and status?

I would like they to appear along side each other.

Thanks!

Here is my code so far:

# coding=utf-8

from jira.client import JIRA
options = {'server': 'https://jira.blank.com/'}
jira = JIRA(options, basic_auth=('blank', 'blank'))

for i in jira.search_issues('filter=14270', maxResults=150):
print i
Keyur Potdar
  • 7,158
  • 6
  • 25
  • 40
Leap Head
  • 13
  • 2
  • 5

1 Answers1

0

To print the summary and status simply call those fields as illustrated below:

for i in jira.search_issues('filter=14270', maxResults=150):

    issue=i
    print issue.fields.summary
    print issue.fields.status
fxmatt
  • 111
  • 2
  • Thanks. This now prints the summary and status, however it seems to be breaking my loop. It only gives me 1 result even though there should be over a 100. – Leap Head Feb 02 '18 at 10:24