2017-02-02 2 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) 
関連する問題