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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,473
Community Members
 
Community Events
176
Community Groups

How do I copy all the comments to a new task?

Hello,

I'm currently struggeling to copy the comments from an old task to a new one.
This is important for automated moving of task in our service management.

I would like to build an easy button for our service desk workers to move the task to another project, but all that is missing right now are the comments.

Is there any good way to copy the comments into the new created tasks?

Best Regards
Niklas

2 answers

1 accepted

1 vote
Answer accepted
Mark Segall Community Leader May 06, 2022

Hi @Niklas Zarnecke 

You could potentially do this with automation:

AUTOMATION 1: Create your Clone

This would be a simple automation rule to create the clone.  Main thing would be adding a link like clones or blocks so you have a point of reference to get back to the source issue for the comments later.

AUTOMATION 2: Copy Comments

  • TRIGGER: Issue Created
  • ACTION: Lookup Issue
    • issueIsClonedBy = {{issue}}
  • BRANCH:  Advanced
    • {{lookupIssues.comments}}
    • ACTION: Add Comment

Here's an example of how this rule could look:

2022-05-06_09-47-03.png

Hi @Mark Segall

thanks for your answer! Some logical thing is missing for me right now.. the second automation isn't triggered right now.

This is the first rule:

1.PNG

And this is the second one:

2.PNG

I'm pretty new to the automation stuff.. I'm not getting why and how the second Automation is triggered.

Best Regards
Niklas

Mark Segall Community Leader May 06, 2022

Under Rule Details, you may need to check the box:

Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule.

Mark Segall Community Leader May 06, 2022

Also looking at your screenshot, you're calling your variable for the advanced branch kommentare, but you copy/pasted my variable name.  So, in your add comment, you'll want to replace the references to varComment with kommentare

Hey @Mark Segall

the automation is now triggered by creating a new issue. But there are no comments found. Here is what the audit log says:3.PNG

It seems like he cannot find the issue.

Best Regards
Niklas

Mark Segall Community Leader May 09, 2022

Can you please share a screenshot of your lookup Issues action?

Here is the screenshot:

4.PNG

Mark Segall Community Leader May 09, 2022

In your clone issue action on the first rule, did you add the "link Issue" field?  You'll need to make sure your cloned issue is linking to the trigger issue.  If not, you're creating the issue, but there is no link between it and the source issue.

Thanks! Now it's working. You really helped me!

Like Mark Segall likes this

Your options appear to be more vast than mine; is this in the cloud instance or Data Center Version?

Hi @Howell_ Adrianna 

we are using the cloud instance.

Best Regards
Niklas

THank you Niklas.  I have been unable to resolve this using the Data Center Version as the capabilities are not the same, even for the Automation plug-in.

Hi,

this is good usefull idea but I need copy comments between two existing issues and then delete one issue. Just comments. Have you any idea for that? Thx.

Mike

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events