Hi there,
My goal is to automatically create sub-tasks to our release ticket (so assignees can approve the set of tickets in the release for which they're the beneficiaries), and then link tickets for which assignees are "Product Beneficiaries" to those sub-tasks.
For example, if the "Product Beneficiary" is John Smith for tickets A, B, and C in release 1.23, then a sub-task should be created and assigned to John Smith to approve tickets in the release, and then tickets A, B and C should be linked to that sub-task so John Smith knows which tickets to approve.
I already have 2 rules:
Rule 1 creates sub-tasks, one for each Product Beneficiary. This is being done successfully.
Rule 2 assigns the sub-tasks, one for each Product Beneficiary. This is being done successfully.
What remains is to automatically link the tickets in view to these newly-created sub-tasks. I'd like to create Rule 3 for this.
The linking logic should go as follows:
- Lookup all issues tied to the release
- Group the issues in the release by "Product Beneficiary" (user: John Smith). The "Product Beneficiary" is set in the Epic of the issues in the release. (Assume all issues in the release have epic assignments.)
- Link that subset of issues in the release to the sub-task where the issue belongs to an epic on which John Smith is the assigned "Product Beneficiary".
Example:
- Epic "Write Code" has Product Beneficiary John Smith. Of issues in release 1.23, 10 belong to the "Write Code" epic.
- Epic "Deploy App" has Product Beneficiary Jane Doe. Of issues in release 1.23, 13 belong to the "Deploy App" epic.
- Rules 1 and 2 work together to create 2 sub-tasks on the ticket for Release 1.23: one sub-task assigned to John Smith, another assigned to Jane Doe.
Desired Outputs:
Automatically link tickets in release 1.23 from "Write Code" epic (where John Smith is Product Beneficiary) to John Smith's sub-task.
Automatically link tickets in release 1.23 from "Deploy App" epic (where Jane Doe is Product Beneficiary) to Jane Doe's sub-task.
Any help would be appreciated. Thank you!!!