2017-02-02 9 views

답변

0

jira-python을 사용하여 먼저 가능한 모든 문제를 검색 한 다음 지정자 필드가 None인지, 따라서 아무도 지정되지 않았는지 확인합니다.

# search_issues can only return 1000 issues, so if there are more we have to search again, thus startAt=count 
issues = [] 
while True: 
    tmp_issues = jira_connection.search_issues('', startAt=count, maxResults=count + 999) 
    if len(tmp_issues) == 0: 
     # Since Python does not offer do-while, we have to break here. 
     break 
    issues.extend(tmp_issues) 
    count += 999 

not_assigned = [] 
for i in issues: 
    if i.fields.assignee is None: 
     not_assigned.add(i)