Forums

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

Preciso fazer uma automação para linkar automaticamente dois itens

Tenho dois tipos de itens diferentes criados e preciso que o Jira compare dois campos e se forem iguais, criar o link de causa entre os dois itens.

Exemplo: 

Tenho o item TSTC-34 e o Item TSTC-38 

No item TSTC-38 tem uma campo chamado "Nome do evento adverso" que o usuário responde com o nome de outro item "TSTC-34".

Quero fazer uma automação em que quando for criado o segundo item "Seleção de investigação" o Jira compare o campo "Nome do evento adverso" = "key" (TSTC-34) e faça o link do tipo causa : TSTC-34 causa TSTC-38.Captura de tela 2023-04-28 183514.pngCaptura de tela 2023-04-28 183526.png

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Champion
April 28, 2023

Olá @Alessandra Cristina da Silva Moraes ,

Aqui está a estrutura básica da regra:

ACIONADOR: Alterações de valor de campo
Campo para monitorar alterações: "Seleção de investigação"
Tipo de alteração: valor agregado
Para: todas as operações de emissão
CONDIÇÃO: Condição dos Campos de Problema
Campo: "Nome do evento adverso"
Condição: não está vazio
BRANCH: Para problemas relacionados / JQL
JQL: problema = {{problema.Nome do evento adverso}}
- AÇÃO: problema de link
tipo de link: causas
link para: Problema de gatilho

---

Hello,

Here is the basic structure of the rule:

TRIGGER: Field Value Changes
Field to monitor for changes: "Selection of investigation"
Change type: value added
For: all issue operations
CONDITION: Issue Fields Condition
Field: "Adverse Event Name"
Condition: is not empty
BRANCH: For Related Issues / JQL
JQL: issue = {{issue.Adverse Event Name}}
- ACTION: Link Issue
link type: causes
link to: Trigger Issue

I need to do an automation to automatically link two items

I have two different types of items created and I need Jira to compare two fields and if they are the same, create the cause link between the two items.

Example:

I have Item TSTC-34 and Item TSTC-38

The TSTC-38 item has a field called "Adverse event name" to which the user responds with the name of another item "TSTC-34".

I want to make an automation in which when the second item "Selection of investigation" is created, Jira compares the field "Adverse event name" = "key" (TSTC-34) and links the type cause: TSTC-34 cause TSTC -38.

Suggest an answer

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

Atlassian Community Events