Move an approved request to the engineering project
Action: Move work items (Move)
The problem
Support takes requests in a service project. Once one is approved, it belongs in the engineering project as a story, where the team plans it. Someone moves it by hand with Jira's move screen, one at a time, mapping the status each time. Requests wait in the wrong project until someone gets to it.
The native workaround
Automation has no move action. The usual workaround clones the work item into the other project and deletes the original. That gives it a new history, drops its comments' and attachments' context and its links from other work items, and anyone following the old key lands on nothing.
With Kenshall Automation Actions
In a rule on Work item transitioned to Approved in the service project, add **Move work items**:
- Move: The rule's work item. Its sub-tasks always move with it.
- Target project: Engineering (ENG).
- Work type: Story.
- Statuses: Approved = To Do. Statuses with the same name in both projects carry over on their own;
* = Backlogsends any other status to Backlog.
Tick Preview only the first time: nothing moves, {{updatedKenshallMove.moved}} says how many
work items would move and .movedItems lists them. A work item that can't move is named in the
rule's audit log: a status with no mapping, a value the target requires and it doesn't have, a
security level or restriction the target can't keep, or child work items that would lose their
parent (move them too, e.g. parent = PAT-10 OR key = PAT-10, or unlink them first).
The work item keeps its history, comments, attachments, links and watchers; its old key keeps working. If a run was wrong, Apps → Kenshall Automation Actions → Run log → Revert moves its work items back to the project, work type and status they had, with their parent links, components and versions. They get a new key there (the old keys keep working). Work items someone moved elsewhere, restricted or added sub-tasks to since stay where they are.
Allow both projects on the Safety tab first. The rule's user needs Jira's Make bulk changes global permission, plus Move work items in the source project and Create work items in the target.
Smart values: {{updatedKenshallMove.key}} (the new key), .moved, .movedItems (old and new
keys), .pending, .skipped, .failed, .notKept and .preview.
Good to know:
- Jira moves work items in the background, about 2 a second. A run Jira hasn't finished in about 15 seconds carries on without waiting (
.pendingsays how many); the Run log shows the result when Jira is done. - Moves fire "Work item moved" rules, one run per moved work item, as a move by hand does.
- Values in fields the target project doesn't have are kept by Jira but not shown there; they're listed in
.notKeptand show again if the work item moves back. Components and versions belong to a project, so they're listed too; revert puts them back. - Jira keeps a status the target also has, even when Statuses maps it elsewhere; Move then gives the work item the mapped status with one transition.
- A work item moved across projects can lose its parent link; Move puts it back where Jira allows, and lists "Parent links" in
.notKeptwhere it can't.
Limits: up to 1,000 work items per run, sub-tasks included (within the Safety tab's cap). A sub-task moves with its parent; on its own, pick a standard work type to make it a work item of its own.
