Breadcrumbs

Last status change author

📚

This template displays the name of the last user who changed the status of the current work item if it was ever changed.

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

Configuration

To use the Last status change author template, simply select it from the template grid. Filter by Status 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

Jira expression:

issue.changelogs.filter(c=>c.items.some(i=>i.field=="status"))[0]?.author?.displayName || ""

Details

1. What does the expression do?

This expression finds the name of the last user who changed the status of the current work item. If the status has never been changed, it will return an empty string.

2. Step-by-step breakdown

Let’s break it down:

  • issue.changelogs: This refers to the full history of changes for the current work item.

  • .filter(c => c.items.some(i => i.field == "status")): This filters the changelogs to only include those where at least one change was made to the "status" field.

    • c.items: Each changelog entry contains a list of items (fields that were changed).

    • .some(i => i.field == "status"): Checks if any of the changed items in that changelog entry is the "status" field.

  • [0]: After filtering, this selects the first changelog entry where the status was changed. (Note: In Jira expressions, changelogs are ordered from most recent to oldest, so [0] gives you the latest status change.)

  • ?.author?.displayName: This safely retrieves the display name of the user who made that status change.

  • || "": If there is no status change found (so no author), it returns an empty string.

3. Examples

  • If a work item’s status was changed yesterday by "Alice Smith", the expression will display "Alice Smith".

  • If the status has never been changed, the expression will display "None".

4. Real-life use cases

  • Audit and reporting: Quickly see who last moved a work item to a new status (e.g., from "In Progress" to "Done").

  • Workflow monitoring: Identify the team member responsible for the most recent status update.

  • Custom dashboards: Display the last status changer’s name in custom fields or reports for better tracking and accountability.