Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×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:
Example:
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!!!
This is complex use case, tailored your your team's usage of Jira, although it may not have seemed that way when it was implemented by manually changing the issues.
I recommend having a discussion with your Jira Admin on how to implement this with rules, and how to handle any exception/edge cases possible.
Rules appear not to have been designed to nest branches and this scenario needs that capability. So a work-around may require chaining of rules to trigger them in coordinated succession. Because of this complexity I recommend asking your admin for help, and they may help find a solution.
Kind regards,
Bill
Hey @Bill Sheboy - thanks for the response. I'm a Jira Admin and this one's got me stumped :)
In my mind, the hard part isn't so much running rules in a particular order, or related to anything unique to our Jira instance. I would have thought (seems wrongly) that this is a common use case: business stakeholders (in Epics) review some subset of tickets in a release, with the goal of automatically linking related tickets so business stakeholders know which tickets are theirs to review.
In Jira's Automation Template Library, there's a rule that seems close to what I'm trying to accomplish, below.
I'm not familiar with the smart value in the "Link issue to" expression in the image below. But the goal would be: Instead of linking tickets mentioned in comments, we'd link tickets by each ticket's Epic assignee. (Which as you say, seems more complicated and may require chaining smart values in, say, an Advanced Branch. At least, that's where my head's at!)
Most of the examples I find in the Community forums similar to this have to do with auto-linking issues from comments.
Thanks again for the response!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for clarifying, Dillon. The outcome you note is a common case...it is the details where it gets interesting implementing with rules.
My recommendation would be to first try to answer the questions below to understand how many rules you need and what triggers could fire them.
Then try doing this incrementally in rules, such as
Here are those questions, and some possible assumptions. Please adjust to you needs before trying the next rules:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.