from jira import JIRA, JIRAError
import numpy as np
import pandas as pd
import networkx as nx
import csv
import xlsxwriter
jiraOptions = {'server': "https://jira.server_link"}
jira = JIRA(options=jiraOptions, basic_auth=("my Jira user ID", "my Jira password"))
df = jira.search_issues('filter=myJira # filter', startAt=block_num*block_size, maxResults=block_size, fields="*")
block_size = 10000
block_num = 0
print(df)
df.to_csv(path_or_buf='data.csv', sep=';', header=header, index=True, index_label='N', mode=mode) -> Error:AttributeError: 'ResultList' object has no attribute 'to_csv
”
亲爱的社区,
你知道如何修复这个错误吗?我需要将过滤器Jira结果打印到csv/excel。有什么想法吗?
谢谢你
1条答案
按热度按时间toiithl61#
IIUC,您最可能需要Search of Issues结果的表格格式:
测试/输出:
适用范围:
我们得到: