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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to copy comment from linked issue

Hello I have problems synchronizing linked issues.

I have rule to create linked issue when changing state, that works great.

Then I have rule to copy description and add comment to linked Issue via For Linked Issues.

First is to copy Description from original issue that also works great.

Then I have Comment on issue and this doesn't work at all.

I tried {{issue.comments.last.body}} that didn't add any comment. Then I tried some sample text but didn't work either.  I though this would add comment to that linked issue. Am I using this function wrong?

 

Thank you,

Lukas

 

1 answer

OK I got this working with {{comment.body}}.

But how do you get comment when transitioning between states? Then I always get Comment body can not be empty

Hi Lukas,

Is this in server or in cloud?  {{issue.comments.last.body}} should definitely work regardless of the trigger.

There have been some changes in Jira Cloud recently from Atlassian's side where they separated the issue transitioned and commented webhook into 2 separate events (transitioned & comment_created), which is why {{comment.body}} doesn't work in Jira Cloud anymore.

Can you raise a support request please via https://codebarrel.atlassian.net/servicedesk/customer/portal/1 and include:

  • Server or Cloud
  • If in server, your versions of Jira & Automation of Jira
  • Screenshots of your rule configuration, audit log for this rule and the issue showing the comments that are not showing up

Cheers,
Andreas 

Like Mark Hostetler likes this

Hello Andreas,

I am in Cloud. I got linked issues comments synced by {{comment.body}} (strangely, with {{issue.comments.last.body}} I got copy of last comment from issue (So I had duplicates), but with {{comment.body}} I managed to get linked issue's comment into issue I wanted). But now I have different problem. I have rule on transition to copy comment given from popup when transitioning. Can you please tell me which smart value would copy thath comment? Otherwise sure, I will create support ticket later today.

 

Thank you,

Lukas

I am trying this and still running into issue. I tried the following conditions:

When comment added --> If link type is duplicates or is duplicated by --> Then add comment ${triggerissue.comment}

 

This didn't work. I've also tried

{{triggerIssue.comment.last.body}} and {{trigguerIssue.comment}}

 

Each time it copies the syntax instead of copying the variable I'm requesting.

 

and we use Jira server, if that helps. Thanks!

I've a similar requirement but I want to copy the public comment from one issue to all of it's linked issues.

If the comment is internal it should copy to Internal on all the linked issues. 

Is this possible?

I was able to achieve this

 

Master_to_Child_Comment_Updates.png

Like Jose Avalos likes this

Thanks for your flow. Now, I have problem with the generated comment don't copy the image. Any solution for it?

image.png

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

59 views 0 5
Read article

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