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.
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.
@Pears Whims Thanks for the help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for accepting the answer!
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.