Como retornar valores duplicados dentro de um campo do JIRA em um determinado projeto em um determinado status
Necessito de fazer uma automatização onde ao criar o Tickt ele compara no projete o campo summary, se for idêntico ao que esta com um determinado status ele Correlaciona automaticamente o ticlt.
Mas não consegui fazer a pesquisa via JQL para comparar.
Conseguem me ajudar?
Olá @Henrique Degan
Bem-vindo a comunidade Atlassian.
Pela sua descrição, eu entendo que você quer configurar uma regra de automação para automaticamente criar um link do novo ticket criado para todos os outros que tenham o mesmo sumário. Correto?
Você pode criar a regra seguinte para ter esse resultado:
O.B.S: O campo sumário suporta apenas o operador "~", então o link será aplicado não apenas para os tickets que dupliquem exatamente o mesmo texto no sumário, mas também para aqueles que contenham as mesmas palavras (Em qualquer ordem) do sumário especificado na regra.
Para mais informações sobre como referenciar o valor de campos usando automação, verifique a documentação abaixo:
Fico a disposição caso tenha mais alguma dúvida.
Ola Muito obrigado pela orientação, eu fis alguns testes com um resumo me sucinto, como pro explempo:
3 e ele deu certo ele fez a condição mas quando coloca uma informação mas complexa como:
XXXX_XXXXXXXXXXXX_Disk I/O is overloaded on XXXXXXXXXX [SMS]_High
ELE RETORNA O SEGUINTE ERRO:
This rule was configured with a project restriction. You can change this restriction in the 'Rule details' section. Only issues from the following projects or project types will be considered:TST
Erro ao procurar problemas relacionados. Esta situação foi provavelmente causada porque os seguintes problemas não têm um problema relacionado do tipo que especificou. Tente restringir a procura de modo a incluir apenas os problemas que contenham ligações para problemas relacionados:TST-225: "((summary ~ "XXXX_XXXXXXXXXXXX_Disk I/O is overloaded on XXXXXXXXXX [SMS]_High") AND (key != TST-225)) AND (project in (12246))" - The text query 'XXXX_XXXXXXXXXXXX_Disk I/O is overloaded on XXXXXXXXXX [SMS]_High' for field 'summary' is not valid: probably your range query is incorrect.
O que sera que esta acontecendo?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Olá @Henrique Degan
Vi que você conseguiu fazer a regra que eu mencionei. Ela funcionou conforme esperado?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Agradeço muito pema ajuda, a regra funcio a em um resumo sucinto, quando resebemos um resumo mais complexo como:
XXXX _XXZZZ XXX - XXXX a regra nao funciona retorna erro..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Olá @Henrique Degan
Poderia nos informar qual o erro retornado?
Visto que o sumário é adicionado de forma explícita no JQL, acredito que o mesmo não aceita caracteres especiais.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This rule was configured with a project restriction. You can change this restriction in the 'Rule details' section. Only issues from the following projects or project types will be considered:TST
Erro ao procurar problemas relacionados. Esta situação foi provavelmente causada porque os seguintes problemas não têm um problema relacionado do tipo que especificou. Tente restringir a procura de modo a incluir apenas os problemas que contenham ligações para problemas relacionados:TST-225: "((summary ~ "XXXXX_XXXXX_Disk I/O is overloaded on SAOS101AL01P [SMS]_High") AND (key != TST-225)) AND (project in (12246))" - The text query 'XXXXX_XXXXX_Disk I/O is overloaded on SAOS101AL01P [SMS]_High") ' for field 'summary' is not valid: probably your range query is incorrect.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Olá @Henrique Degan
Verificando o erro retornado para você, acredito que o mesmo realmente esteja sendo causado pelos caracteres especiais no campo sumário.
Dito isto, você deve utilizar o parâmetro {{issue.summary.asJsonString}} para reconhecer os caracteres especiais como parte do sumário, conforme a captura abaixo:
Pode testar e confirmar se funciona?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ola, eu fiz o teste e retorna erro na da mesma forma, mas outro erro conforme tela abaixo:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Olá Henrique,
Analizando a captura que você mandou, vejo que a sua regra esta diferente da que eu recomendei inicialmente, sendo o trigger feito manualmente e as issues gerando um link para uma outra issue pre-existente.
Do jeito que você criou a regra, o Smart value {{issue.summary.asJsonString}} não tem nenhuma issue de referência para comparar o sumário de outras issues e verificar o texto duplicado, então é esperado não funcione.
Para fazer a regra funcionar, você deve selecionar o trigger retornando o sumário de uma issue em específico e então o smart value conseguirá referenciar o mesmo valor na JQL.
Caso você tenha alguma dúvida, por favor clarifique exatamente o que você esta tentando fazer com a última regra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ola @Petter Gonçalves ,
Agradeço muito seu apoio, para alcançar o resultado desejado segui suas orientações e fiz em 3 passos:
1º - Regra que ignore caracter na criação do Tickt:
2º - Automação de transição de item em 3 minutos:
3º - Regra barseada em JQL que busca em uma o tickt aberto se á em outras filas ele em tratativa etc, então se não houver mantem em diagnostico, se sim:
Resolve o mais antigo e correlaciona com o mais novo.
Com isso alcancei o desejado.
Muito obrigado.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.