I want to check unassigned tickets in jira using java,python or any other script.
Asked
Active
Viewed 783 times
0
-
JQL: assignee is empty – mdoar Feb 02 '17 at 18:13
1 Answers
0
Using jira-python we first search for all the possible issues, then we check if the assignee field is None, thus nobody assigned.
# 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)

SgtDroelf
- 331
- 1
- 18