Forums

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

Automação - Clone cartão

Sabrina Casas Sansão
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2024

Olá, fiz você uma automação, que quando um cartão é movido, o mesmo é clonado. 

Até aqui tudo dando certo, o que não estou conseguindo fazer é com que seja clonado também os comentários.Captura de tela 2024-08-29 101411.png

1 answer

1 accepted

1 vote
Answer accepted
Pears Whims
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.
August 29, 2024

Hi @Sabrina Casas Sansão ,

 

To read Your question I used translation to help understand it better. Here’s what I gathered:

Your Question (Translated):

Hello, I created an automation where, when a card is moved, it is cloned. So far, everything is working correctly. However, I am having trouble getting the comments to be cloned as well.
Jira does not support copying comments from the original issue to the cloned one by default. However, you can achieve this using Jira Automation with smart values.

 

Here’s how you can set it up with Automation, which You seem to be familiar with.

Create an Automation Rule

Go to Project settings > Automation and create a new automation rule with the trigger “Issue Created.”

Add a Condition
• Use the Related issues condition. Set it to check if the issue that triggered the automation is a cloned issue. Select Linked issues as the type and Clones as the link type.

Lookup Original Issue

Add a Lookup issues action to search for the original issue using the JQL

issue in linkedIssues("{{issue.key}}")

Use the {{lookupIssues}} smart value in the next steps.

Advanced Branching

Add an Advanced branching condition using the smart value {{lookupIssues.last.comments}}. Name this variable Comm for use in the next action.

Copy Comments

Under Advanced branching, add the Comment on issue action. Use the smart values to add the comments from the original issue to the cloned one:

Comment by: {{Comm.author.displayName}} at: {{Comm.created}}
{{Comm.body}}

Ensure to check “Prevent duplicates by only adding this comment once to a particular issue.”

(Optional) Set Comment Visibility
Choose whether the comments should be Internal only or Shared with customer based on your needs.

Finally - save and Publish the Rule

This rule should allow you to clone issues along with the copy of the comments successfully.


For more detailed instructions, you can refer to this article:
https://confluence.atlassian.com/jirakb/how-to-copy-comments-from-the-original-issue-to-the-cloned-issue-1236601599.html

Please let me know if this helps!

Best of luck,
Pears.

Sabrina Casas Sansão
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2024

@Pears Whims Thanks for the help!

Pears Whims
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.
August 29, 2024

Thanks for accepting the answer!

Like Sabrina Casas Sansão likes this

Suggest an answer

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

Atlassian Community Events