You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Our team has adopted a new organizational method, via specified labels on all of our Issue Types. Unfortunately, I have run into a problem where I am manually applying all of the labels to the Stories/Tasks within my Epic.
My initial goal was to proactively Label the Epic with the Team and Project Code, and have any issues created under the Epic automatically take on the labels of the Epic.
I have been able to create an automation to make sub-tasks copy the labels of the Parent Issue, however, when I apply the same logic and use the Action: "copy from epic", the audit log informs me that it could not find the Epic to pull the information from.
Is there something I should be changing below to get this automation to work?
Hi @Mizael Ponce -- Welcome to the Atlassian Community!
Your want your rule to trigger when a child issue (e.g. story) is created...and it already points to an epic. Is that correct? If so, you want watch for timing problems with the Issue Created trigger and copy directly from the Epic.
What do you want to happen if the Epic Link for an issue changes later?
Kind regards,
Bill
Hi @Bill Sheboy ,
Thank you for that suggestion! The automation is working smoothly now.
Regarding your last question, I want the Issue types to take on the labels for whatever Epic they are currently linked to.
Is there a rule I can implement for this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For that use case, you will want a second rule triggered on issue update to copy from the epic.
Unfortunately you cannot use the Issue Field Changed trigger with "Epic Link" as that is not supported yet. Instead you use the generic Issue Updated and add a condition, such as...
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy Well, it got me most of the way. Turns out that it works for tasks, stories, and initiatives, but not subtasks. The automation triggers, and says it edited the subtask, but the label is blank. I've got it copying from Epic, not Parent, so that part should be okay. You've already been very generous with your expertise, but if you have a moment to sanity check me, I'd greatly appreciate it.
In the screencaps, DIS-86 is a subtask generated from DIS-85, which is a task that successfully picked up its label from the Epic using the same rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When the source issue type varies like this, two solution approaches to copy data from the "parent" are to use two rules to limit scope (e.g. a rule for epic to story, and a rule for story to subtask), or to use if/else conditions in one rule. For the second approach, that would look like this:
Please adjust this accordingly as I am unclear of your type hierarchy (based on Jira license level).
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.
So a subtask can't copy labels from an epic two levels up? That's a pity. I'll give this structure a try.
Merci Beaucoup!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can also try doing this as sometimes the structure below works, assuming the {{issue}} is a subtask}}
{{issue.parent.parent.labels}}
I recommend experimentation; this syntax does not work for everything. If it did, a rule would need to potentially pull in every issue in a project/site!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy I've been reading through this thread after having an issues with it.
I set it up successfully using a different trigger (mainly to capture any Jiras in progress - see screenshot) and what I've discovered is "Copy Labels from Epic issue" doesn't seem to be a copy but a replace/sync - ie. when triggered the labels are copied from the epic, BUT if i then add additional labels to a story when the automation is triggered again it removes those additional labels.
Any ideas on how i can copy labels from the epic and keep additional labels in any story?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @bmacdonald
You are correct that the "Copy Labels from Epic issue" is a replace, not an add to existing, operation. I recall answering this scenario before, and I'll look around to see if I can find the post/link.
The solution is to add the additional labels using advanced edit with JSON, such as:
As your rule is triggered on changes to Assignee and Status, this may update the issue more often than needed. Please consider if another trigger(s) would help.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Claudio Gonzalez ,
Thank you for your Input! I edited the Rules to reflect your image (assuming T&A and Linux/Unix are your issue types), however I am still not seeing the label field populate on the Stories/Tasks that I am creating under the Epic.
I am attaching an image of the Rule Details and Audit Log the for your review.
Is there perhaps a field I need to include on my Epics in order for the Automation to recognize the Issue type and information I am requesting?
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.