2017-02-02 15 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)