'new' error in Search_issues() fields.copy() Attribute Error

Matt Ashfield July 3, 2020

I 'rebuilt my PC' and reinstalled Python 2.7 and jira python library

jra-2.0.0

python 2.7.17

JIRA 7.6.9

since then Search_issues() no longer works using a 'fields=' attribute.

 

searchstring = 'project in("MyProject") and issuetype in (epic)  ORDER BY "epic"'   
#verprint ("Got JIRAs")    

 

#first fails

j1=  jiraconn.search_issues(searchstring, startAt=0, maxResults=500,fields=['customfield_10090','duedate','customfield_10070', 'issuetype','reporter','summary']) 

# Matt A Removed Fields List 3rd July 2020   

#this works

j1=  jiraconn.search_issues(searchstring, startAt=0, maxResults=5000)

error

[, in File "/usr/lib/python2.7/site-packages/jira/client.py", line 2084, in search_issues fields = fields.copy() AttributeError: 'list' object has no attribute 'copy']

 

if i remove the fields attribute from Search_Issues() all works well, but a lot slower of course.

 

any help would be much appreciated.

 

1 answer

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2021

Suggest an answer

Log in or Sign up to answer