我想使用 java、python 或任何其他脚本检查 jira 中未分配的票证。
问问题
577 次
1 回答
0
使用 jira-python,我们首先搜索所有可能的问题,然后检查受让人字段是否为无,因此没有人分配。
# 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)
于 2017-02-06T11:49:08.123 回答