Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Retornar a url do item vinculado a issue

Erick Vasconcelos January 16, 2024

Olá, 

 Estou fazendo uma automação que clona o item de um projeto a outro, vincula os dois itens criados e dispara um alerta no Slack. 

Porém, não estou conseguindo incluir a url ou o link do item que foi clonado.


"Olá, <!here> !

Um item foi aberto à partir do Service Desk.
{{issue.key}} - {{issue.summary}}
{{issue.url}}"

 Quero que abaixo da issue.url retorne a url do item que foi clonado para o outro projeto.

3 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Thales Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 16, 2024

Olá Erick, você tentou usar o smart value

{{createdIssue.key}} 

ou 

{{createdIssue.url}} 

?

Thales Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 16, 2024

Talvez essa parte da documentação ajude: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--createdIssue--

Você pode ver um exemplo de uma regra utilizando a ação "Clone issue" aqui: https://www.atlassian.com/software/jira/automation-template-library/rules#/rule/1357222/26550314

Erick Vasconcelos January 22, 2024

Olá, Thales. 

Funcionou da forma que comentou. Muito obrigado ! 

0 votes
Evgeniy
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.
January 16, 2024

Hi, @Erick Vasconcelos 

 

For sending message to Slack, and formatting it as url link in Slack, you can use such message body, for example:

{
"channel":"{{slackchannelid}}",
"text":"Jira issue: “Issue <{{issue.url}}|{{issue.key}} - {{issue.summary}}> created“"
}
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.
January 16, 2024

Hi @Erick Vasconcelos 

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Until we see those...

You describe cloning an issue into another project, and so I wonder...what is the scope of your rule: project, multiple-project, or global?

A project-scope rule can create or clone issues into a different project.  However it cannot "see" their data.  To see the data, like the URL, the rule would need to be multiple-project or global in scope.  And to create a rule like that, your Jira Site Admin will need to help.

Kind regards,
Bill

TAGS
AUG Leaders

Atlassian Community Events