Keep an epic's stories and sub-tasks in step

Action: Copy fields to related work items (Copy fields)

The problem

When an epic's Team or Fix version changes, its stories and their sub-tasks should follow. Jira doesn't do that on its own, so work items drift apart and boards and release filters miss work.

The native workaround

A rule on the epic branches to its stories and edits each one, copying from the parent. Rules can't branch inside a branch, so sub-tasks of those stories need a second rule. Each field needs its own edit, and "only if empty" needs a condition per field. Every child edit can set off other rules, and there's no preview or undo when the rule is wrong.

With Kenshall Automation Actions

In a rule triggered by Field value changed: Team, Fix versions on epics, add **Copy fields to related work items**:

  • Copy: Down to its children
  • Fields: Team and Fix versions
  • Levels: All levels below (stories and their sub-tasks)
  • Copy to: Only work items that aren't done (the default, so shipped work keeps its history)

Tick Preview only the first time: the run changes nothing, {{updatedKenshallCopy.changedItems}} lists the work items it would change, and the Run log tab shows how many. Untick it when you're happy. If a run was wrong, **Apps → Kenshall Automation Actions → Run log → Revert** puts the previous values back, except fields someone has changed since.

Allow the project on the Safety tab first. Values that already match aren't written, so re-runs change nothing, and an empty field on the epic is never copied over a child's value.

Other settings: Only fill empty fields keeps values the children set themselves. _Add to them_ adds fix versions or labels instead of replacing the list.

Other directions:

  • Up: collect list fields from children into the parent, e.g. an epic shows every fix version its stories are in. For number totals and dates, use Roll up.
  • To linked work items: e.g. a service request's priority and due date onto the development work item it's linked to (pick the link type, such as Relates).

Smart values: {{updatedKenshallCopy.changed}}, .matched, .unchanged, .skipped, .failed, .changedItems (the keys) and .preview.

Fields: labels, fix and affects versions, components, priority, assignee, due date, Team, and custom number, date, short text, select, checkbox, radio and user fields (up to 10 per action). Versions and components are copied by name, select options by value.

Limits: 125 work items per run (within the Safety tab's cap), so a run answers Automation within about 20 seconds; 5 levels. If a run can't get through every work item (cap reached, out of time), the rule stops with a message saying how to fix it; running it again continues, since work items already up to date are skipped quickly.