I offer paid 30 mins or 60 mins 1-1 consultancy calls.
Jira Courses, Training and Consulting: Sparxsys Trainings
Thanks for coming here, I hope you are enjoying learning here, I have also written some books in case you want to learn a bit more :)
If you need my help with Drupal, Linux, Jira, Scripting, Automation or want to contact me then raise a ticket for me please :) and I will get back to you, promise. At Sparxsys we provide Atlassian consultancy services, reach out to me at ravi at sparxsys dot com

Automating Jira Comment Synchronization: A Step-by-Step Guide

Keeping related Jira issues updated can be a tedious, manual process. If you've ever found yourself copy-pasting comments across multiple linked bugs or tickets, you know how prone to error and time-consuming that can be. In this guide, we'll explore how to set up automated comment synchronization in Jira Cloud, ensuring that updates flow seamlessly between your work items.

Getting Started: Navigating Automation Settings

Depending on your organizational needs, you can configure these rules globally or locally. For cross-workspace functionality, navigate to "Systems" and then "Global Automation." If you're working within a single space, navigating directly to the local space settings is often the simplest approach to create your automation rule.

Setting Up Your Trigger

To initiate the sync, start by selecting the "Work item commented" trigger. This ensures that every time a user adds a comment to your primary work item, the automation flow begins. Ensure the comment type is set to "all comments" to capture every update.

Creating a Branch Rule for Linked Issues

A common pitfall is attempting to add an action directly to the trigger. This will only affect the issue where the comment was written. To make sure your updates reach your linked issues, you need to use a branch rule. Select "Branch flow / related work item," choose "linked work item," and specify the link type (e.g., "this issue blocks that issue"). This isolates the related items for processing.

Leveraging Smart Values for Context

This is where the magic happens. Inside your branch, add an "Add comment" action. To ensure the synchronized comment contains the correct context, use Jira's Smart Values:

  • triggerIssue: Use this instead of issue to reference the original bug that started the workflow. Using issue inside a branch would incorrectly reference the linked issue being processed.
  • triggerIssue.comments.last.body: This retrieves the text of the most recent comment added to your original issue.

 

Combining these values allows you to create a dynamic, informative comment on all linked issues that clearly shows which original issue was updated.

Testing and Scaling Your Automation

Once the rule is saved and turned on, it's time to verify. Link a test bug to other issues, add a comment, and check the linked issues to ensure the text has propagated correctly. The best part? This logic isn't limited to "blocked" issues. You can apply the same principle to "cloned," "duplicated," or "related" issues, making it a powerful tool for parent-child tasks, epics, and general issue tracking.

By implementing this automation, you can reduce manual overhead and ensure that your team stays aligned, no matter how complex your Jira issue dependencies become.

Subscribe

* indicates required

Please confirm that you would like to from Sparxsys:

You can unsubscribe at any time by clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices.

Want to contact me?