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,297,744
Community Members
 
Community Events
165
Community Groups

How to copy all comments with timestamp while cloning an issue?

Hello All,

 

For our use case, we need to copy the comments while cloning an issue. We are trying to leverage the Automation but have not been successful till now.

Any suggestions to achieve this, especially with native functionality, are highly appreiated.

3 answers

3 accepted

Hi @Gaurav Gupta 

 

I'm working as a pre-sales engineer with Exalate.

I will suggest something out-of-the box.
Cloning the issue to another Jira Cloud instance with Exalate, and then you can configure that the comments will get copied over.

The ticket will out-of-the-box be fully bi-directionally syncronized, which means, if a field gets updated on either side, it will automatically update on the other side, you can change this to make it uni-directional if you so please.

Exalate is easy and straightforward to set-up and you can control exactly which data you want to send and/or receive. 

If you would like to see a customized demo of the product, please book a slot with us. 

Cheers

Mathieu Lepoutre

1 vote
Answer accepted
Gaurav Community Leader May 31, 2022

Hello @Gaurav Gupta 

Apart from the above suggestions, Automation can be leveraged to create something similar.

Please find below the snapshot of the rule we created for a similar use case. This brings all comments from the original issue and publishes them separated by dashes and blank lines with the author and timestamp.

The code snippet for comment uses smart values and is as:

{{#destinationIssue.comments}}
Comment by: {{author.displayName}} at: {{created}}
{{body}}
------------------------

{{/}}

 

Let me know if this helps.

--GG

Copy comments to Cloned Epic.PNG

Gaurav Community Leader May 31, 2022

@Gaurav Gupta Just to add, the automation fails if the overall length of the comment is more than 32767 characters. This is the default maximum length allowed for comments. There are open tickets with Atlassian to handle this scenario.

1 vote
Answer accepted

To answer the main question, no, you can't do this with plain off-the-shelf Jira.  It's not something cloning is actually for, so there's no functionality in the cloning bit, and Jira expects different issues to be there for different reasons, and not have comments be copied because they are separate issues with their own life cycles.

You'll need an app to implement this, and Mathieu has already talked about one of the ones I would suggest.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you