How to auto trigger comments from one project to the linked project
Asked by Lakshmi Kumari:

Hi,

I manage multiple projects hence I am supposed to create external (Service desk projects) and internal projects which needs to be linked to each other.. I created an automation rule to auto trigger the comments from service desk project to the linked project (internal project) but it's not working. Attached is the snapshot for your reference that shows the details of rules. Please review and confirm the detailed steps on auto trigger of comments from external to internal project..

I have already linked the**Issue type** triggers and it's working but auto trigger comment is not successful.

![Screenshot 2024-02-04 at 2.51.21?PM.png](/t5/image/serverpage/image-id/304164i67C4B6E0D448B6E2/image-size/large?v=v2&px=999 "Screenshot 2024-02-04 at 2.51.21?PM.png")![Screenshot 2024-02-04 at 2.52.22?PM.png](/t5/image/serverpage/image-id/304163i3CA0D55A10A559AE/image-size/large?v=v2&px=999 "Screenshot 2024-02-04 at 2.52.22?PM.png")

Please help.

Regards,

Lakshmi


Answers:
author: GNarsimhagowda - Empyra
body: Hi [@Lakshmi Kumari](/t5/user/viewprofilepage/user-id/5203874) ,

I recreated the same automation as you suggested above it is working for me for reference i have attached the screenshot, I think you are adding internal comment because when i tried adding the internal comment i got the same message in the audit log.![2024-02-05_14h51_40.png](https://community.atlassian.com/t5/image/serverpage/image-id/304264iD47018D4F4101B32/image-size/large?v=v2&px=999 "2024-02-05_14h51_40.png")

comments: author: GNarsimhagowda - Empyra
body: The same rule is working for me

![2024-02-05_15h22_07.png](https://community.atlassian.com/t5/image/serverpage/image-id/304281i1A94B7666CD17B78/image-size/large?v=v2&px=999 "2024-02-05_15h22_07.png")![2024-02-05_15h22_17.png](https://community.atlassian.com/t5/image/serverpage/image-id/304283i352DA7F91C2D6AFA/image-size/large?v=v2&px=999 "2024-02-05_15h22_17.png")![2024-02-05_15h22_58.png](https://community.atlassian.com/t5/image/serverpage/image-id/304282i1C39251FD4A31E1E/image-size/large?v=v2&px=999 "2024-02-05_15h22_58.png")


author: GNarsimhagowda - Empyra
body: And try unticking the checkbox in the action "comment" That might be the problem!.

![2024-02-05_15h27_23.png](https://community.atlassian.com/t5/image/serverpage/image-id/304285iAB07A27DC422BCED/image-size/large?v=v2&px=999 "2024-02-05_15h27_23.png")


author: Lakshmi Kumari
body: Hi,

I tried deleting the 2nd condition that was updated in "IF Condition" rule section and checked the "prevent duplicates" option, it's working now... JIRA has come up with lot of updates which has affected the conditions now and back then when i created old projects...

Thanks a lot of helping me out -)

Regards,

Lakshmi


author: GNarsimhagowda - Empyra
body: Hi [@Lakshmi Kumari](/t5/user/viewprofilepage/user-id/5203874) ,

Try creating the rule in global automation,The rule is working for me instead of the "triggerissue.comment" use this "{{triggerIssue.comment.last.body}}", This will copy the last comment from the issue instead of copying all the comments everytime the automation runs.

If you are facing the issue upload the screen shot of the audit log that will be helpful to see the rootcause.

Thanks

comments: author: Lakshmi Kumari
body: Thank you Narsimha.. I will try this option and update you in a while.

Cheers,

Lakshmi


author: Lakshmi Kumari
body: Hi Narasimha,

I made the changes as per your suggestion but its still not working.. Comment is still not reflecting on the linked ticket.. Attached is the snpashot for your reference.

![Screenshot 2024-02-05 at 2.11.57?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/304240i03263E1B8397F195/image-size/large?v=v2&px=999 "Screenshot 2024-02-05 at 2.11.57?PM.png")![Screenshot 2024-02-05 at 2.15.52?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/304241iBFA5B490EA7C9E5F/image-size/large?v=v2&px=999 "Screenshot 2024-02-05 at 2.15.52?PM.png")![Screenshot 2024-02-05 at 2.16.05?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/304239iBDD7FF5241CABBCE/image-size/large?v=v2&px=999 "Screenshot 2024-02-05 at 2.16.05?PM.png")

Please help.

Regards,

Lakshmi


author: GNarsimhagowda - Empyra
body: Hi can you elaborate the If Block and upload the screenshot.

Thanks


author: GNarsimhagowda - Empyra
body: I think the problem is in the "If" block in particular "comment.internal" try removing it and check the rule will work fine!

Are you trying to add Internal comments to the Software project?


author: Lakshmi Kumari
body: Hi,

I have attached the snapshot of "If Block"...

IH is the main project (service desk for customers) and CRM is internal project meant for our staff/Dev team.. Whatever comments are updated in "Internal note" comment section in "IH" Project (main project) needs to be automatically reflecting in CRM project too (Dev team - internal staff).. Issue type, summary description and attachment is getting triggered automatically from IH to CRM project but not comments..

Let me know if you want me to elaborate more.

![Screenshot 2024-02-05 at 2.46.31?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/304257i624EBE0DAC346F46/image-size/large?v=v2&px=999 "Screenshot 2024-02-05 at 2.46.31?PM.png")![Screenshot 2024-02-05 at 2.46.44?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/304256iF8C436971C75BB24/image-size/large?v=v2&px=999 "Screenshot 2024-02-05 at 2.46.44?PM.png")


author: GNarsimhagowda - Empyra
body: Ok try just changing the "comment.internal" to "True" and it will work as expected and i have just checked it and it is working


author: Lakshmi Kumari
body: Folks, any suggestions on the above query ?


author: GNarsimhagowda - Empyra
body: Ok just changing the "comment.internal" to "True" will work as expected and i have just recreated it and it is working!.

comments: author: Lakshmi Kumari
body: Not working... -((

I have attached few snapshots for your reference.

![Screenshot 2024-02-05 at 3.21.13?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/304278i1790E3793A446429/image-size/large?v=v2&px=999 "Screenshot 2024-02-05 at 3.21.13?PM.png")

![Screenshot 2024-02-05 at 3.13.56?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/304277iCD394A07D0CBF737/image-size/large?v=v2&px=999 "Screenshot 2024-02-05 at 3.13.56?PM.png")![Screenshot 2024-02-05 at 3.14.29?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/304276i84FB8CD70863E69B/image-size/large?v=v2&px=999 "Screenshot 2024-02-05 at 3.14.29?PM.png")


Tags: cloud

jira-service-management

jira-service-management-cloud