Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,733
Community Members
 
Community Events
165
Community Groups

How to use Jira Automation to copy components from Epics to the issues within the Epic

I have tried using the answers from other posts on this topic, but those solutions are not working.  

I would like to use automation to copy the components of Epics to the children tickets (see below).  However, the automation keeps updating the epic.

I have moved the issues type condition and still no luck.

Holly

Screen Shot 2021-08-11 at 1.47.21 PM.png

 

 

2 answers

1 accepted

2 votes
Answer accepted

Hi @Holly Schomann 

When you want to edit an issue, automation use the scope at that location in the rule.  In your image, you show a branch on the epic/parent and so that is what gets edited.

If you want the epic's components copied to its children, you could try this:

  • trigger: scheduled on JQL for any open (not completed) epics
  • branch: on the stories/issues in the epic
    • conditions: as needed... such as not done, etc.
    • conditions: doesn't already contain the components you want to set
    • action: edit issue fields components, use the ... menu to select Copy From Parent Issue

Best regards,
Bill

Thanks Bill for your response. This is helpful. Can you include a visual, as I believe i have tried this as well.

I have the JQL searching for open epics with specific components.

I then just need all tickets in those epics to copy the components from the epic.  I still wasn't able to get it to work. 

If you could include a visual that would help me.

thanks so much

Holly

Here you go, Holly...with some additional explanations about why it may not be working for you.

test rule to copy components, parent to children.PNG

  • The scheduled trigger uses JQL, such as this one I used to ignore some test components.  Change these as needed.
issueType=epic AND component IS NOT EMPTY AND component NOT IN ("ABC", "DEF")
  • The scheduled trigger disables the option "Only include issues that have changed since the last time this rule executed"  You may want to re-enable this after the rule runs the first time to improve performance.
  • The branch also disabled "Only include issues that have changed since the last time this rule executed" so changes to epics update children, even when they have not changed.
  • The Edit Issue changes the Components field, selecting Copy Components from Epic issue, as I described earlier
  • Also for that edit, there is a checkbox for Add to existing values
    • Leave that checked if you want the epic's components added, and
    • Clear it if you want the epic's components to replace values in the children

 

If that gives you problems, please post your rule image and the audit log from an execution.

Bill!! 

OMG..thank you so much!  It worked!  I had spent so many hours on this. You are my hero!!

Not only did you save me from spending more time on this, but you also helped me look like a rockstar to my team.

I really can't thank you enough!

Hope that you have a good weekend.

My sincerest thanks,

Holly

Like Bill Sheboy likes this

I am glad to learn that helped you, Holly.  I hope you have a great weekend!

__Bill

Like Holly Schomann likes this

@Bill Sheboy : hi ! can you please help in copy components from one project to another using Automation in cloud ?

thanks !

Hi @Ramonde Zrihen 

First thing, as your question seems a bit different from this thread, I recommend creating a new question and then linking to this one for reference.  That will get the most visibility so the community can help.  Otherwise only the people following this thread will see it.

Next, components are configured at a project level, and so you could

The approach you select may depend upon your ability to purchase an addon, and how often you need this and other constraints (e.g. what happens when components change between projects).

Kind regards,
Bill

@Bill Sheboy : thank you for your quick reply ! i thought there might be an easier solution rather "managing" it while edit / delete etc'... /buying add on / update manually

thank you in advanced !
Cheers !!
Ramonde

Like Bill Sheboy likes this
0 votes

Hello @Holly Schomann 

Another solution would be to use an add-on.

I'm the Product Manager of Elements Copy & Sync, which lets you do just want your are requesting. You can copy the Components to the issues under the Epic when you create them, and keep them synchronised afterward.

Don't hesitate to ask if you have any question.

Kind regards,

Julien

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,123 views 34 44
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you