You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to bulk archive issues; the UI doesn't make this easy so I'd hope the jira library just did it, but it doesn't, so I'm gonna try and fix it...
Possible solution(s)
jql="status = 'done' and type = 'task' order by created desc"whileresponse:=jira.search_issues(jql):
archive_keys=set()
forissueintqdm(response):
print(issue.key, issue.fields.summary)
archive_keys.add(issue.key)
jira.archive_issues(list(archive_keys)})
Alternatives
This can be accomplished with the existing API like this
jql="status = 'done' and type = 'task' order by created desc"whileresponse:=jira.search_issues(jql):
archive_keys=set()
forissueintqdm(response):
print(issue.key, issue.fields.summary)
archive_keys.add(issue.key)
jira._session.put(jira._get_url(f"/issue/archive"), data={"issueIdsOrKeys": list(archive_keys)})
Problem trying to solve
Trying to bulk archive issues; the UI doesn't make this easy so I'd hope the
jira
library just did it, but it doesn't, so I'm gonna try and fix it...Possible solution(s)
Alternatives
This can be accomplished with the existing API like this
Additional Context
Now, archive issues on Jira Cloud with APIs - August'23
API Docs
The text was updated successfully, but these errors were encountered: