Copy Comment to linked Issue when new comment is added

Tim McMinn February 7, 2021

when I try try this, it will work for first comment added but future comments between my JIRA cloud projct and JSM project will not be added:

Comment1 config.PNG Commen Log.PNG

 

When I try using a branch with condition to linked issues  it will run in a loop and add multiple duplicate comments.

 

I simply want to add any new comment added from JIRA cloud ticket to linked JSM ticket.  If not JSM is useless to me as I dont want my team to have to maintain both JIRA and JSM tickets independently.

3 answers

1 accepted

5 votes
Answer accepted
wwalser
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 9, 2021

Hi Tim,

From your screenshot, it appears that the "Prevent duplicates by only adding this comment once to a particular issue" checkbox is unchecked. However, the audit log message is the message that we provide when a comment is prevent _because of that checkbox_. 

That's actually a minor point as the configuration of your rule won't do what you're intending. A rule configured as in your screenshot will add a duplicate comment the issue on which the original event was triggered. That is to say, when a comment is created on issue A, if issue A has a linked "duplicate" issue, issue B, a comment will be added to issue A containing the contents of the latest comment on issue A.

I was able to create the automation that I believe you're after and have provided screenshots of that automation from my own instance.

Of note, two important pieces of configuration are shown:

  1. The prevent duplicate checkbox on the comment action component must be unchecked. This allows multiple issues to be moved from one issue to the other.
  2. The actor of the rule must be set to Automation for Jira to prevent the rule from creating a circular execution loop where a comment created by automation begits yet another comment being created on the other issue and on and on forever.

Screen Shot 2021-02-10 at 12.16.18 am.png

 

Screen Shot 2021-02-10 at 12.17.49 am.pngScreen Shot 2021-02-10 at 12.17.54 am.png

Best,
Wes

Tim McMinn February 9, 2021

Thank you Wes.  I hope to become a JIRA Automation expert in the near future.  Very powerful.  I appreciate your time and excellent documentation of this rule.

akoleva July 20, 2021

Hi. I saw the above and I think it is exactly what we need, but I can't find these conditions in our Automation. Are they in the PRO version?

Mark Toledo October 3, 2021

Hi @wwalser 

 

Can you check from my end? It doesn't seem to be calling the related linked issue from Jira Software:

 

Automation.JPG

Ola Carlander October 26, 2021

I am also getting "No actions perfromed" when trying to update comments on our on Prem Jira from JSM (and vice versa). 

The action details states:  

Branch rule / related issues
No related issues could be found
Is it enough to have the application link set up or are there more permissions that needs to be set on the remote site? 
Lydia Marasa-Scafidi
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!
December 17, 2021

This is really helpful. 

I have an additional layer of complication, however:

I have an automation configured that when conditions are met on one board (O3O), it automatically clones the issue onto another board (LF) and links the issues.

From there, all action by employees will be done on the LF board.

  • Any comments made on the LF ticket trigger the same comment on the O3O ticket.
  • Any status transitions on the LF ticket to trigger a comment on the O3O ticket "The linked issue has been transitioned to In Review"
  • The closure of the ticket on LF to trigger the closure of the ticket on O3O.

Hoping you can assist. 

Gary Lee Ritchey February 21, 2022

@Mark Toledo  I would assume that you are trying to copy comments to a linked issue in a different project. If this is the case you have to add this a a global automation fro multiple projects. This also counts against your global automation executions. 

1 vote
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 7, 2021

Check your comment rule to see if you have it set to not perform duplicate action. 

0 votes
Santiago Casaretto
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!
March 16, 2021

Hi,

I have a problem that i can´t solve it.  By coping that secence i could copy the written comments but if in the comment there is an document atahced the file gives me an error while coping it (it dosen´t charge in the sub-task). 

I hope somone can help me to solve this issue.

Thanks,
Santiago

Mark Toledo September 5, 2022

Hi @Santiago Casaretto , I cannot find the source however it is a limitation from JIRA that attachments are not being copy by the automation.

trthomas
Contributor
March 1, 2024

Hello @Santiago Casaretto 

Not sure if you were ever able to solve this issue with copying attachments.  Here is what I've done to be able to copy attachments between ticket in different projects.  I have it set as a manual trigger so it can be done whenever we want. 

2024-03-01 10_01_25-Rule builder - Automation - Procurement - Jira and 4 more pages - Work - Microso.png

Suggest an answer

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

Atlassian Community Events