Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Como faço para herdar uma informação do item pai para uma subtarefa?

Gabriel Kaneko July 18, 2023

Olá!

Quando eu crio uma subtarefa ela se vincula ao item pai, porém não encontrei o vínculo com o épico.
Pensei em fazer uma automação para copiar o "Epic Link" do item pai em qualquer subtarefa que eu criar.

 

Como faço essa automação? Aparentemente preciso de fazer um JQL, porém não sei fazer  :/

2 answers

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Champion
July 18, 2023

Olá @Gabriel Kaneko ,

Você já começou a construir a regra? Em caso afirmativo, mostre-nos o que você tem até agora.

Você pode consultar a Biblioteca de Automação de Modelos do Jira para ver se outra pessoa criou uma regra semelhante que você pode copiar.

https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all&page=1&pageSize=20&sortKey=name&sortOrder=ASC

As subtarefas não são vinculadas diretamente ao Epic automaticamente. A relação com o Epic é rastreada por meio do problema pai da subtarefa.

Você deseja criar um vínculo real entre as subtarefas e a Epic pai do problema pai ou deseja apenas registrar a Chave Epic na subtarefa?

O que você espera que aconteça se o problema pai for movido para um épico diferente?

 

---

Hello,

Have you already started constructing the rule? If so, show us what you have so far.

You may want to look at the Jira Template Automation Library to see if somebody else has constructed a similar rule that you can copy.

https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all&page=1&pageSize=20&sortKey=name&sortOrder=ASC

Subtasks do not link directly to the Epic automatically. The relationship to the Epic is traced through the subtask's parent issue.

Do you want to create an actual link between the subtasks and their parent issue's parent Epic, or do you just want to record the Epic Key in the subtask?

What do you expect to happen if the parent issue is moved to a different Epic?

How do I inherit information from the parent item to a subtask?

Hello!

When I create a subtask it links to the parent item, but I couldn't find the link to the epic.
I thought about making an automation to copy the "Epic Link" of the parent item in any subtask I create.

 

How do I do this automation? Apparently I need to make a JQL, but I don't know how to do it

Gabriel Kaneko July 19, 2023

Olá, @Trudy Claspill !

 

Esta é a lógica que pensei para fazer minha automação.
Quando crio uma Subtarefa, ela deverá herdar a informação "Epic Link" da História, Tarefa ou Bug (Item Pai).

 

Neste espaço que destaquei em vermelho eu deveria fazer alguma JQL para puxar esta informação do Item Pai, certo?

 

Jira doubt.png

Trudy Claspill
Community Champion
July 19, 2023

Você não deve definir o campo Epic Link na subtarefa. O campo Epic Link deve ser usado apenas para vincular problemas de nível padrão (ou seja, História, Tarefa, Bug) a Epics. As subtarefas não devem ser vinculadas diretamente aos épicos.

Se você insistir em querer ver o Epic do problema pai das subtarefas dentro da subtarefa, precisará adicionar essas informações de uma maneira diferente.

Você pode registrar a chave épica em um campo personalizado separado.

Você pode criar um link de problema genérico entre a subtarefa e o Epic.

Em ambos os casos, você precisa decidir o que deseja que aconteça se o problema pai da subtarefa for removido da Epic e opcionalmente adicionado a uma Epic diferente.

 

---

You should not set the Epic Link field on the subtask. The Epic Link field is to be used only for linking standard level issues (i.e. Story, Task, Bug) to Epics. Subtasks are not intended to be linked directly to Epics.

If you insist on wanting to see the subtasks's parent issue's Epic within the subtask then you need to add that information in a different way.

You could record the Epic Key in a separate custom field.

You could create a generic issue link between the subtask and the Epic.

In either case you need to decide what you want to happen if the subtask's parent issue was removed from the Epic and optionally added to a different Epic.

This is the logic I thought to do my automation.
When I create a Subtask, it should inherit the "Epic Link" information from the Story, Task, or Bug (Parent Item).

 

In this space that I highlighted in red I should do some JQL to pull this information from the Parent Item, right?

Like Gabriel Kaneko likes this
Gabriel Kaneko July 20, 2023

Hmmm, entendi!

Tentei mexer bastante nas automações ontem, mas não encontrei nenhuma maneira.
Imaginei mesmo que não tem como vincular o Item Filho no Épico.

@Trudy Claspill , muito obrigado pela sua ajuda!

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 18, 2023

Hi @Gabriel Kaneko 

What problem are you trying to solve by doing that?  Knowing that may help the community to offer suggestions.

The default issue hierarchy is:

  • Epic
    • Issue (Story, Task, or Bug)
      • Subtask

And so a Story, Task, or Bug have an "Epic Link" (or parent) field, but the Subtasks do not.  The parent for a Subtask would be one of the issue types...normally.

Kind regards,
Bill

Gabriel Kaneko July 19, 2023

Olá, @Bill Sheboy !

 

Quando faço um filtro rápido de épico no quadro do meu time, ele filtra apenas pelas Histórias, Tarefas ou Bugs (Itens Pai), mas as Subtarefas são ocultadas por conta do filtro. Por isso gostaria que o campo "Epic Link" fosse herdado para as Subtarefas também.

Estou tentado fazer a automação desta forma, mas aparentemente preciso de um JQL para puxar esta informação (Epic Link) do Item Pai.

 

Jira doubt.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 19, 2023

Thanks for that information, Gabriel.

The epic link field is not relevant for the subtasks.  I can understand that logically for the hierarchy it may make sense: subtasks are part of a story, the story is part of an epic, and so the subtasks are part of the epic.  But practically they are not as subtasks are only part of their direct parent.  To filter and show what you describe often requires marketplace addons for JQL filters.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events