Breadcrumbs

Last comment

📚

This template displays the text of the last comment posted in the current work item.

If there is nothing to display, the result will be “None”.

Configuration

To use the Last comment template, simply select it from the template grid. Filter by Comment to find it faster.

Parameters

This template does not require any additional parameter configuration.

Expert mode

If you switch to Expert mode you can see the formula field in the Expression Parser. You can now tweak the expression to create a custom formula field based on this template.

Expression

General expression:

%{issue.lastComment}

The text will be returned using wiki markup, e.g. bold text will be shown as *bold text*.

Details

1. What does the expression do?

The expression returns the text of the most recent comment posted on the current work item.

2. Step-by-step breakdown

  • %{issue.lastComment}: Refers to the last comment of the current work item.

So, %{issue.lastComment} means "show me the text of the last comment on this work item."

3. Examples

  • If the last comment on a work item is: "Please update the documentation," the expression will display:
    Please update the documentation

  • If there are no comments on the work item, the displayed result will be:
    None

4. Real-life use cases

  • Dashboard summaries: Display the latest feedback or update from team members directly on a work item card.

  • Reporting: Quickly see the most recent discussion or action item without opening the full comment history.

  • Custom fields: Use this expression in a custom formula field to highlight the latest comment for review or escalation.