Forums

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

Automação Jira: Vincular Novos Incidentes a Problemas Existentes

Fabrício Fernandes de Souza
Contributor
July 8, 2025

 

Olá comunidade,

Estou buscando aprimorar uma automação no Jira e preciso da ajuda de vocês com uma regra específica.

Atualmente, minha automação cria novos incidentes. No entanto, gostaria de introduzir uma etapa inicial: verificar se já existe um "problema" relacionado antes de criar um novo incidente.

A ideia é a seguinte:

Se um problema existente for identificado, quero que os novos incidentes sejam vinculados a esse problema em vez de gerar um novo. Caso contrário, a automação seguiria o fluxo atual de criação de um novo problema/incidente.

Alguém poderia me dar algumas direções sobre como configurar essa lógica no Jira Automation (Jira Automation Rules)? Que condições e ações seriam as mais adequadas para implementar essa verificação e vinculação?

Agradeço qualquer ajuda ou sugestão!


image.png

1 answer

0 votes
Trudy Claspill
Community Champion
July 8, 2025

Olá @Fabrício Fernandes de Souza ,

Acredito que publiquei uma solicitação de mais informações relacionadas a isso em sua outra pergunta aqui:

https://community.atlassian.com/forums/Jira-Service-Management/Dificuldade-em-Construir-a-L%C3%B3gica-Condicional-para-Contagem-de/qaq-p/3060994

 

Mas repetirei essas perguntas aqui em sua nova postagem.

 

A regra deve ser executada somente quando o item criado tiver um Tipo = "Incidente"?

Em caso afirmativo, imediatamente após o Gatilho, você deve usar uma Condição / Condição dos Campos do Item de Trabalho para confirmar que o Tipo de Item de Trabalho do problema do gatilho é "Incidente".

 

Para a Etapa 2, você deseja vincular o novo Incidente ao Problema existente?

 

Para a Etapa 3, você deseja vincular o Problema recém-criado ao Incidente que acionou a regra?

 

Não tenho certeza sobre o propósito da Etapa 4.

- Você está tentando vincular o novo Incidente que acionou a regra aos Incidentes pré-existentes?

- Você está tentando vincular os Incidentes existentes ao Problema recém-criado?

 

Vejo que você também respondeu naquela outra pergunta. Vou copiar essa resposta para esta nova pergunta e adicionar uma nova resposta minha.

 

---

Hi,
I believe I posted a request for more information related to this in your other question here:

But I will repeat those questions here in your new post.

Should the rule execute only when the item created has a Type = "Incident"?

If yes, then immediate after the Trigger you should a Condition / Work Item Fields Condition to confirm the Work Item Type of the trigger issue is "Incident".

 

For Step 2, do you want to link the new Incident to the existing Problem?

 

For Step 3, do you want to link the newly created Problem to the Incident that triggered the rule?

 

I'm not sure about the purpose of Step 4.

- Are you trying to link the new Incident that triggered the rule to the pre-existing Incidents?

- Are you trying to link the existing Incidents to the newly created Problem?

 

I see that you also replied in that other Question. I will copy that reply to this new Question and add a new reply of my own.

 

The idea in the rule is:

Trigger to create an incident
Step 1 Check if there is already a problem registered for this incident.
Step 2 If yes, register the new incident in the existing problem.
Step 3 If not, register a new problem
Step 4 Link all incidents related to the new problem.

Trudy Claspill
Community Champion
July 8, 2025

Sua resposta no outro post foi:

Sim!
Preciso verificar se existe um problema com resumo semelhante ao incidente recém criado se sim vincular o incidente recém criado no problema existente.

Caso não exista um problema criado com resumo semelhante ao incidente recém criado, criar novo problema e vincular incidente recém criado e outros incidentes existentes que atendem mesmo critério do incidente recém criado.

Em seguida, responderei com mais informações com base nessas informações adicionais que você forneceu.

---

Your reply in the other post was:

Yes!
I need to check if there is a problem with a summary similar to the newly created incident. If yes, link the newly created incident to the existing problem.

If there is no problem created with a summary similar to the newly created incident, create a new problem and link the newly created incident and other existing incidents that meet the same criteria as the newly created incident.

Next I will reply with more information based on this additional information you provided.

Trudy Claspill
Community Champion
July 8, 2025

Você espera que possa haver mais de um Problema que corresponda ao JQL na sua primeira ação de Consulta?

Se houver, você gostaria que o novo Incidente fosse vinculado a todos os Problemas correspondentes?

E você gostaria que outros Incidentes correspondentes fossem vinculados a todos os Problemas correspondentes?

Você prevê que, quando um Problema já existe, pode haver Incidentes preexistentes (não os problemas que o desencadearam) que ainda não estão vinculados a ele?

Ao pensar nesse requisito, recomendo a criação de uma regra separada que seja acionada pela criação de um novo Problema. Nessa regra separada, haveria uma ação de Consulta para encontrar todos os Incidentes com um resumo que corresponda ao Problema e criar os vínculos entre o Problema e os Incidentes nessa regra separada.

 

---

Do you expect that there could be more than one Problem that matches the JQL in your first Lookup action?

If there is, would you want the new Incident linked to all matching Problems?

And would you want other matching Incidents to be linked to all the matching Problems?

Do you anticipate that when a Problem already exists there might be pre-existing Incidents (not the trigger issues) that are not already linked to the Problem?

In thinking about this requirement I think I would recommend creating a separate rule that is triggered by the creation of a new Problem. In that separate rule there would be a Lookup action to find all the Incidents with a summary that matches the Problem, and create the links between the Problem and the Incidents in that separate rule.

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