Automa??o - Puxar valores de campos customizados do Epico criado
Asked by Leonardo Muniz:

Ol? pessoal, tudo bom?  

Montei uma automa??o no Jira que funciona da seguinte maneira:  

Eu crio um ?pico, caso ele passe por duas condi??es, eu pe?o para abrir uma sequ?ncia de itens filhos, como mostra abaixo:  

<br />

![Automa?ao.png](https://community.atlassian.com/t5/image/serverpage/image-id/342247i10FC735ACDE9B924/image-size/large?v=v2&px=999 "Automa?ao.png")  

Nas tarefas criadas, eu gostaria de puxar um valor de um campo customizado escolhido no item ?pico, ou seja, na cria??o do ?pico eu coloco esse campo customizado com o valor correto e gostaria que nos itens filhos esse campo possua o mesmo valor.

O campo em quest?o inclusive ? esse que aparece nas condi??es:  
customfield_10325 igual a Projetos.  

Ele possui como nome: Demanda (setor)  

Nas configura??es da cria??o de cada tarefa eu j? tentei de duas maneiras:  

![Demanda item atual.png](https://community.atlassian.com/t5/image/serverpage/image-id/342248iF49C8BF52D62338A/image-size/large?v=v2&px=999 "Demanda item atual.png")  
E dessa maneira tamb?m:  

![Demanda setada.png](https://community.atlassian.com/t5/image/serverpage/image-id/342249iE1CA69E03E4605AB/image-size/large?v=v2&px=999 "Demanda setada.png")

Assim, quando se abre os itens filhos, nenhum est? com o valor setado, aparece o campo por?m vazio.

Consultando o log de auditoria da automa??o, eu recebo essa mensagem:  

<br />

![Erro.png](https://community.atlassian.com/t5/image/serverpage/image-id/342251i59BC340B5EE54A1E/image-size/large?v=v2&px=999 "Erro.png")

O que inclusive me mostra outro valor de ID de campo customizado. L? em cima podemos ver o filtro puxando pelo campo de ID 10325, e no log o ID 10328.  

Eu n?o sou admin nem fui respons?vel por montar todo o projeto desse Jira que trabalho, ent?o fiquei tamb?m com pouco acesso ?s edi??es de campos customizados.  

Enfim, gostaria de entender qual ? o erro e o que eu poderia fazer para conseguir trazer esse valor setados nos itens filhos, poderiam me ajudar?  

Muito obrigado!!


Answers:
author: Trudy Claspill
body: Ol? [@Leonardo Muniz](/t5/user/viewprofilepage/user-id/5570052) ,

Bem-vindo ? comunidade Atlassiana.

Que tipo de projeto voc? est? usando? Obtenha essas informa??es na coluna Tipo na p?gina Exibir todos os projetos no menu Projetos.

Quando voc? cria manualmente um problema do tipo Tarefa nesse projeto o campo Demanda (setor) fica dispon?vel para ser configurado?

Nesta etapa

![Demanda item atual.png](https://community.atlassian.com/t5/image/serverpage/image-id/342248iF49C8BF52D62338A/image-size/large?v=v2&px=999 "Demanda item atual.png")

Para copiar os dados do Epic, que ? o gatilho da regra, ? necess?rio clicar no texto "Copiar Demanda (setor) de item atual". Isso abrir? um pop-up que permitir? selecionar o campo do qual deseja copiar os dados e o problema do qual deseja copiar os dados. Voc? precisa alterar a op??o Copiar de para Acionar problema.

![Screenshot 2024-08-16 at 11.20.45?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/342258iFD5B0BE83E517443/image-size/large?v=v2&px=999 "Screenshot 2024-08-16 at 11.20.45?AM.png")

---

Hello,

Welcome to the Atlassian community.

What type of project are you using? Get that information from the Type column on the View All Projects page under the Projects menu.

When you manually create an issue of type Tarefa in that project is the Demanda (setor) field available to be set?

In this step...

To copy data from the Epic, which is the trigger issue for the rule, you need to click on the "Copiar Demanda (setor) de item atual" text. This will open a pop-up that will allow you to select the field from which you want to copy data and the issue from which you want to copy the data. You need to change the Copy From option to Trigger Issue.

> Automation - Pulling values ??from custom fields from the created Epico
>
> Hello everyone, how are you?
>
> I set up an automation in Jira that works as follows:
>
> I create an epic, if it passes two conditions, I ask it to open a sequence of child items, as shown below:
>
> In the created tasks, I would like to pull a value from a custom field chosen in the epic item, that is, when creating the epic I put this custom field with the correct value and I would like this field to have the same value in the child items.
>
> The field in question is the one that appears in the conditions:  
> customfield_10325 equals Projects.
>
> Its name is: Demand (sector)
>
> In the creation settings of each task, I have already tried two ways:
>
> And this way too:
>
> Thus, when the child items are opened, none of them have the value set, the field appears but is empty.
>
> Consulting the automation audit log, I receive this message:
>
> Which even shows me another custom field ID value. Up there we can see the filter pulling the ID field 10325, and in the log the ID 10328.
>
> I'm not an admin nor was I responsible for setting up the entire Jira project that I work on, so I also had little access to editing custom fields.
>
> Anyway, I would like to understand what the error is and what I could do to get this value set in the child items, could you help me?
>
> Thank you very much!!

comments: author: Leonardo Muniz
body: Ol? tudo bom? Muito obrigado pelas boas vindas!  

Ent?o, o projeto em si se trata do tipo: "Projetos de software gerenciados pela empresa"  

Quando eu crio um issue do tipo Tarefa, o campo aparece sim, como abaixo:  

![Captura de tela 2024-08-19 142538.png](https://community.atlassian.com/t5/image/serverpage/image-id/342533i388DFCAE7B2438AF/image-size/large?v=v2&px=999 "Captura de tela 2024-08-19 142538.png")  

Na automa??o, eu coloquei exatamente essa configura??o:  

<br />

![Captura de tela 2024-08-19 142354.png](https://community.atlassian.com/t5/image/serverpage/image-id/342532iFFE9333857CF6EC9/image-size/large?v=v2&px=999 "Captura de tela 2024-08-19 142354.png")

Por?m, mesmo assim o log me traz essa mensagem que coloquei no t?pico anterior.  

<br />


author: Trudy Claspill
body: O campo que voc? v? na caixa de di?logo Criar problema ? denominado "Setor".

![Captura de tela 2024-08-19 142538.png](https://community.atlassian.com/t5/image/serverpage/image-id/342533i388DFCAE7B2438AF/image-size/large?v=v2&px=999 "Captura de tela 2024-08-19 142538.png")

Ao tentar criar um problema do mesmo tipo atrav?s da Automa??o, caso queira preencher o campo "Setor" ? necess?rio selecionar o campo "Setor". Na imagem da sua regra vejo que voc? selecionou o campo "Demanda (setor)".

![Screenshot 2024-08-20 at 3.10.17?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/342823iFA4F1E5591BFA75F/image-size/large?v=v2&px=999 "Screenshot 2024-08-20 at 3.10.17?PM.png")

Voc? precisa eliminar esse campo e selecionar o campo "Setor".

Qual ? o tipo de campo do campo "Demanda (setor)"? Qual ? o tipo de campo do campo "Setor"? Voc? ainda poder? copiar dados do campo "Demanda (setor)" do problema acionador para o campo "Setor" do novo problema, mas o m?todo exato para fazer isso depende dos tipos de campo. Se os tipos de campo forem Lista de sele??o, eles ter?o exatamente os mesmos valores dispon?veis?

---

The field that you see in the Create Issue dialog is named "Setor".

When you try to create an issue of the same type through Automation, if you want to fill in the "Setor" field you need to select the "Setor" field. In the image of your rule I see you have instead selected the "Demanda (setor)" field.

You need to eliminate that field and instead select the "Setor" field.

What is the field type of the field "Demanda (setor)"? What is the field type of the field "Setor" field? You may still be able to copy data from the "Demanda (setor)" field of the trigger issue to the "Setor" field of the new issue, but the exact method to do that depends on the field types. If the field types are Select List, do they have the exact same values available?
> Hello, how are you? Thank you very much for the welcome!
>
> So, the project itself is of the type: "Enterprise managed software projects"
>
> When I create a Task type issue, the field appears, as below:
>
> In automation, I put exactly this configuration:
>
> However, even so, the log brings me this message that I posted in the previous topic.


Tags: cloud

jira-cloud