Currently we are using the following project structure
(stories are not being used):
Epic (parent)
|_____> Issue1 (child)
| |_____-> Sub-Tasks of Issue1
|
|_____> Issue2 (child)
|_____ Sub-Task_1 of Issue2
|______Sub-Task 2 of Issue2
etc.
For example,
Scenario-1:
If `Assignee` field of the EPIC is changed --> change `Assignee` value in all ISSUES in this epic to be the same as the parent.
Scenario-2:
If `Assignee` field of the ISSUE is changed --> change `Assignee` in all sub-tasks in this issue to the same value as parent.
Is it possible to have 1 rule that covers both scenarios?
Can anyone please help to create a new rule that will automate this process?
Thanks in advance!
You could do this by using branches for EPIC contents, and sub-tasks.
Did you try it? Because when I did, and I change the value of an epic, the subtask branch wasn't triggered. Even if I re-fetched the data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It won't trigger the subtask branch if you change the value of an epic, because it's not supposed to.
The requirement - as I read it - is that when the assignee is changed, the assignees one level down on the parent-child hierarchy should be updated. That's what is described in the two scenarios and that's what the automation does.
If the requirement is to cascade down the parent-child hierarchy multiple levels then a two rule solution with the 'allow rule trigger' box checked is really the way to go - but it's not clear to me that that is what's being asked here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're right @Paul O . I misread the question. When I tried the same rule I had on my mind that the rule should change the assignee to all bow levels.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Right, thanks for this. I suppose, it is possible to use the same rule for changing multiple values downstream? (please see the screenshot below)
What is the difference between "copy from trigger issue" and "copy from parent issue?"
how can we devise a rule that covers scenario 3?
Scenario-3: If certain value of EPIC has been changed --> change corresponding value in all downstream ISSUES and ALL SUB-TASK in these ISSUES?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you can update multiple values in a single change as you've shown in your screenshot.
In your use case, the branch is for stories in EPICs and so the "copy from trigger issue" and "copy from parent issue" produce the same outcome. (A different use case might, for example, copy data between tasks or stories that do not share the same parent and so you'd need to use "copy form trigger issue")
The automation I posted does NOT support scenario 3 - it only works to cascade a field setting one level down the hierarchy (Epic to Story/Task OR Story/Task to sub task). I'd always go with a two rule solution to cascade a value from Epic -> Story -> Sub Task, but you should check out @JD_adm and @Bill Sheboy 's suggestions if you'd like to tackle it as a single rule
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm running into a similar issue here and can't solve it. I have a custom issue type "idm automation" that when I update the parent issue field "start date" it doesn't filter down to the sub-tasks. Right now it actually erases the sub-task from the jira automation bot.
Any help greatly appreciated.
yes, I know it's currently disabled :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you mean by "erases the sub-task from the jira automation bot"?
Do you mean the Start Date field in the sub-task is cleared rather than set from its parent issue? If so, please post an image of your Edit Issue action. I believe what you want to use for that rule is "Copy from Trigger Issue" for the field value to copy.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Thanks, Bill. I am currently using the following.
I just realized the 3 dots to the right of the line and the "copy" option. Will try.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do I need to add the "for stories" above this "for Sub-tasks"? I'm using a custom issue type so I'm not sure if it'll work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just tried the above screenshot with the "copy from current issue" in there as well as adding the step above sub tasks for stories and it didn't work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try instead to use "Copy from Trigger Issue", if that is the source you want.
When you use "Copy from Current Issue" in an edit that will try to copy the value from itself. This option is typically used when creating a new issue, not an edit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @JD_adm
Editing my answer due to misreading your question. First of all, you could implement Paul's solution. This will work for you. However, if you want to by changing an Epic's assignee, all sub-issues and their corresponding subtasks to inherit this new assignee, then:
Let me know if this is clear.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Another way to do this without the custom field is with a created variable and lookup issues: gather the keys of the issue you want to update using repeated lookups and variable updates to build a CSV list, and then use a single branch on JQL to update the assignees at once.
Both approaches (custom field and created variable) have the possible limitation of running into the 100 issues processing limit, so "buyer beware". :^)
Kind regards,
Bill
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.
@Alex Koxaras _Relational_thanks. Would this solution work if we are changing multiple EPIC values, e.g. Security Level, Assignee, Reporter, Due Date, etc. ?
when you are in the mood, could you please share a screenshot or an example of this rule? Not sure if I am getting it 100% right.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@JD_adm hi!
Yes this rule could work for as many field changes you want to make.
Concerning the screenshot, I can't share something, because I haven't created the rule. My advice, if you want to learn about jira automation, is to do it yourself and experiment. The basic idea is what I've described in my previous post. If you follow this, you will succeed!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there, how do I set an automation to populate sub-tasks label field with the same value as the label in the parent (story/bug) where the label field is required? Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.