Jira · Arazzo Workflow
Jira Sweep a Stale Issue Through a Transition
Version 1.0.0
Find stale issues with JQL, annotate the first match, discover its transitions, and close it.
Provider
Workflows
stale-issue-sweep
Select a stale Jira issue by JQL, comment on it, and transition it closed.
Runs a JQL search for stale issues, adds an audit comment to the first match explaining the automated action, discovers the transitions available on that issue, and performs the requested closing transition.
1
findStaleIssues
searchForIssuesUsingJqlPost
Run the stale-issue JQL query via POST and take the first match. The query is validated strictly so a malformed query fails loudly instead of silently sweeping the wrong issues.
2
addAuditComment
addComment
Leave an audit trail on the issue before it is closed, so the record of why it was swept survives the transition.
3
listTransitions
getTransitions
Discover the transitions available on the stale issue from its current status, rather than assuming a fixed transition id across projects.
4
closeIssue
doTransition
Perform the closing transition with a resolution. This operation returns 204 with no body on success.