错误无法将<class'jira.resources.PropertyHolder'>>转换为Excel

时间:2019-07-29 05:00:47

标签: python error-handling jira-rest-api

我正在尝试提取Jira Tickets的解决时间。不幸的是,当我运行这段代码时,我现在正在经历此错误

for changelog in changelog_list:
    ws.cell(row=changelog_row, column=start_column+5).value = changelog
    changelog_row += 1 

这是其余的代码

changelog_list = []
#Add additional lists for fields here
#Example: 
#description_list = []

issues_in_project = jira.search_issues('labels=test', expand='changelog', maxResults=False)


for issue in issues_in_project:
    changelog_list.append(issue.changelog)

wb = load_workbook(filename="test.xlsx") #, read_only=False, keep_vba=True
ws = wb["Jira"]

changelog_row = 2

#add additional "$FIELD_row = 1" entries here so the field results start at row 1
#Example:
#description_row = 1


start_column = 1

for changelog in changelog_list:
    ws.cell(row=changelog_row, column=start_column+5).value = changelog
    changelog_row += 1 

# add additional fields here 
#Example:
#for description in description_list:
 # ws.cell(row=description_row, column=start_column+2).value = description
 # description_row += 1

wb.save("Jira Extract.xlsx")

我得到了错误

Cannot convert <class 'jira.resources.PropertyHolder'> to Excel

代替

Date:2019-07-23T14:24:26.110-0400 From:To Do To:Done

0 个答案:

没有答案