Repository navigation
v4.3.3
Issue-type changes no longer leave an issue on the wrong workflow
jira-move.py issue … --issue-type X now refuses a type change whose target type runs another workflow, and undoes a change that left the issue on its old one.
Jira's REST edit endpoint accepts such a change without migrating the issue's workflow the way the UI's Move does. The issue then keeps its old workflow while the project's scheme names the new one. When the new workflow lacks the current status, Jira's own Move refuses the issue afterwards ("incorrectly associated with the status"), and add-ons that look up the workflow step fail on every view of the issue.
Before the change (also with --dry-run) the command refuses when:
- the target type does not have the issue's current status;
- the project's workflow scheme maps the two types to different workflows (the scheme is readable for project admins);
- the scheme is not readable, or does not name both types, and the two types have different status sets.
An issue that was already left on another workflow by an earlier REST change may only be changed to a type that has every status it offers, which sets back the type of the workflow it runs.
After the change the command reads the issue's transitions, which come from the workflow the issue actually runs. If they show that the issue kept its old workflow, it sets the old type back and exits 1. If they cannot be read, it warns and keeps the change.
Limit: without project-admin rights the command cannot read the workflow scheme. Two different workflows with identical status sets then pass the check before the change, and the check after it cannot tell them apart either, because every status the issue offers also belongs to the new type. Run type changes as a project admin where the scheme matters. In that case the issue's status exists in both workflows, so Jira's Move still accepts the issue and repairs it.
--issue-type is now matched against the project's type names without regard to case. For a type with another workflow, use the Jira UI's Move; references/issue-editing.md describes the checks and the repair paths. (#325)
Maintenance
Dependency and CI updates (harden-runner, ruff and skill-repo pre-commit hooks), and the npm source package is marked private (#316, #320, #321, #322, #323, #324).
What's Changed
- chore(deps): update step-security/harden-runner action to v2.22.3 by @renovate[bot] in #316
- chore(deps): update pre-commit hook netresearch/skill-repo-skill to v3.2.1 by @renovate[bot] in #320
- chore(deps): update pre-commit hook netresearch/skill-repo-skill to v3.2.2 by @renovate[bot] in #321
- chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.17.4 by @renovate[bot] in #322
- chore(npm): mark the source package private by @CybotTM in #323
- chore(deps): update step-security/harden-runner action to v2.22.4 by @renovate[bot] in #324
- fix(jira-move): refuse type changes across workflows, verify after by @CybotTM in #325
- chore: release v4.3.3 by @CybotTM in #326
Full Changelog: v4.3.2...v4.3.3