/
See and search on the last person to modify an issue

See and search on the last person to modify an issue

Problem

This article describes how to use Power Scripts™ for Jira, a powerful scripting tool, to address the following scenarios:

  • You want to see the last person who interacted with an issue and list that person on the page.

  • You want to create a filter or dashboard gadget based on the user who last interacted with an issue.

Solution

This single script runs whenever a specified system event occurs and sets the "Last Modified By" custom field to the user who invoked the event.

Prerequisites

  1. Jira Core or Jira Software is installed.

  2. Power Scripts™ for Jira is installed.

  3. The Last Modified By custom field is mapped to its custom field ID in the "sil.aliases" file.

The Script

This script runs any time an issue is modified and sets the Last Modified By field to the user who invoked the change.

The script assumes you have a single user picker custom field called "Last Modified By" and that it is mapped to a custom field ID in sil.aliases.

lastModifiedBy=currentUser();

Configure Event Listeners

In this case, the script is executed when any of the following events occur:

  • Generic Event

  • Issue Assigned

  • Issue Closed

  • Issue Comment Deleted

  • Issue Comment Edited

  • Issue Commented

  • Issue Created

  • Issue Moved

  • Issue Reopened

  • Issue Resolved

  • Issue Updated

  • Issue Worklog Deleted

  • Issue Worklog Updated

  • Work Logged On Issue

  • Work Started On Issue

  • Work Stopped On Issue

 

To reduce performance impact, you may run this script asynchronously if you’re not concerned with the value being set immediately.

Related content

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.