My problem statement is as follows:
I need a repeating pattern in which that requires 4x stories but these need to be created multiple time for multiple teams and all of these stories link back to the same epic.
Whilst the descriptions, acceptance criteria, notes etc have the same value for each of the 4 stories there is a variance in that each teams stories have distinct value associated with them for the stories assigned to their backlogs being:
- Team, Component and Priority
For each component there could be maximum 12 stories (4x priority = Highest, 4x priority = Medium and 4x priority = Lowest) or there could be just 4x if only one priority applies
The priority is set from epic component value e.g. Service (Primary), Service (Secondary), Service (Tertiary)
This is a repeated pattern. I could create very long automation rules that have many duplicate instances of 'Create a new story' but I'm sure that I could automate this more efficiently using a rule to call another rule or branching etc. BUT I can't fathom the right approach.
So basically at its simplest:
- For a selected Epic "CP Foo"
- for each Team Repeat the following linked to Epic "CP Foo"
- Create Story 1 with Priority = Highest and Component = 'EKS'
- Create Story 2 with Priority = Highest and Component = 'EKS'
- Create Story 3 with Priority = Highest and Component = 'EKS'
- Create Story 4 with Priority = Highest and Component = 'EKS'
- Create same 4x stories if there exists Priority = Medium; and repeat if there exists Priority = Lowest etc.
- End Repeat
I have proven out the rule for one team and one set of 4x user stories to ensure generation of story content is correct (see attached image).
- When: This is manually triggered
- Where IssueType = Epic
- If Epic Name starts with "CP Foo"
- Then create a new Story 1 in Same Project where epic link is 'copy from trigger issue'
- Set Summary, Description, Priority, Component, Fix Version, Notes and Acceptance Criteria
- Then create a new Story 2 in Same Project where epic link is 'copy from trigger issue'
- Set Summary, Description, Priority, Component, Fix Version, Notes and Acceptance Criteria
- Then create a new Story 3 in Same Project where epic link is 'copy from trigger issue'
- Set Summary, Description, Priority, Component, Fix Version, Notes and Acceptance Criteria
- Then create a new Story 4 in Same Project where epic link is 'copy from trigger issue'
- Set Summary, Description, Priority, Component, Fix Version, Notes and Acceptance Criteria
- STOP RULE

Any help, advice, direction would be greatly appreciated please?