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

How to Display the Latest Jira Comment Automatically

The Problem: Inefficient Comment Tracking

Managing active Jira issues often means scrolling through dozens of comments from developers, testers, and project managers just to find the latest project update. This manual review process is time-consuming and can lead to missed information, especially when managing multiple work items daily.

The Solution

By using Jira automation, you can automatically capture the most recent comment on an issue and display it in a dedicated field. This ensures critical updates are always visible at a glance without having to open the comments section.

Step 1: Create a Custom Field

To store this data, you need a dedicated container:

  1. Navigate to your work item settings.
  2. Create a new field with the type Paragraph. This ensures that the original formatting of the comment is preserved.
  3. Name the field "Last Comment" (or a similar name suitable for your project).
  4. Important: Assign this field to your "Work Types" (e.g., Tasks, Stories, Features, Bugs) and ensure it is placed in the description or context fields so it appears in the issue view.

Step 2: Implement the Automation Rule

Jira automation allows you to update this field whenever a status change occurs:

  1. Go to Project Settings > Automation and create a new rule.
  2. Trigger: Use the "Workflow Transition" trigger. You can configure this to run whenever an issue transitions to "On Hold," "Done," or any other relevant status.
  3. Action: Select the "Edit Work Item" action.
  4. Choose the "Last Comment" field as the destination for the update.

Step 3: Utilize Smart Values

To dynamically pull the comment data, input the following smart value into the field:

{{issue.comments.last.body.abbreviate(100)}}

Breaking down the logic:

  • {{issue}}: Refers to the current work item.
  • .comments.last: Accesses the collection of comments and selects the most recent one.
  • .body: Extracts the text content.
  • .abbreviate(100): Limits the display to 100 characters, keeping your dashboard clean and readable.

Testing and Troubleshooting

After enabling the rule, perform a test by adding a new comment to an issue and transitioning it. If the automation fails, navigate to the Automation Audit Log in your project settings. This log tracks every execution, allowing you to see if the trigger fired, if the issue was edited, or if an error occurred.

Future Enhancements

Once you have this baseline automation working, consider extending it. You can combine multiple smart values to include the author's name and the date the comment was posted, creating a rich summary field that keeps your team fully informed.

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?