Bulk transition multiple Jira issues using jirac.
Steps:
- Check that
jiracis available by runningjirac --version. If it is missing, tell the user to install it withcargo install jira-commands. - Extract from the user's request:
- project key when relevant
- target status
- JQL filter, or enough context to build one
- whether the user wants to skip confirmation
- If no JQL is provided, build one from the request, for example
project = PROJ AND status = "To Do". - Run
jirac issue bulk-transition --jql '<JQL>' --to '<STATUS>' [--force]. - Make it clear how many issues are affected and whether confirmation is still required.
Examples:
- "transition all To Do issues in PROJ to In Progress" →
jirac issue bulk-transition --jql 'project = PROJ AND status = "To Do"' --to 'In Progress' - "close all done issues in PROJ without asking" →
jirac issue bulk-transition --jql 'project = PROJ AND status = Done' --to 'Closed' --force - "move my open sprint issues to Done" →
jirac issue bulk-transition --jql 'assignee = currentUser() AND sprint = openSprints()' --to Done