How can I create a duplicate epic with all subtasks

Hello,

I am trying to create a generic template for ETL jobs, every job essentially requires a dev to develop / test ETL sections and I want to create a simple template for this.

The simplest idea I could think of was duplicating an epic and change the name of the epic. Subtasks can stay the same.

When I try to do this, the epic gets created and I can see it on my sprint board but I cannot see the subtasks, even though I can see them on the epic page, can you help?

Thank you

Hello @ttopdfgfg and welcome to the community!

I hope you like it here :muscle:

If you are referring to the duplication of items, and to be able to see the subitems in the copy, then a simple mutation like this one should duplicate the item with all the subitems in it:

mutation{
  duplicate_item(board_id:1234567890, item_id:1122334455, with_updates: true) {
    id
  }
}

Take into account that this is the case for duplicating items into the same board.

If you are trying to duplicate an item into a different board, you will have to duplicate the item and then query for the information inside the subitems of that item, and use the create_subitem mutation to add each subitem to that copy.

Let me know if you have any other questions :slightly_smiling_face:

Cheers,
Matias