It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Which field indicates the user who last changed an issue?

In Jira, Updated field indicated the time stamp when an issue was modified. I need to know who last modified/updated an issue. Which field indicates the user who last modified an issue?

5 answers

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.user.util.UserManager

def changeHistoryManager = ComponentAccessor.getChangeHistoryManager()
def changeItems = changeHistoryManager.getAllChangeItems(issue)

if (changeItems?.size() > 0) {
def userManager = ComponentAccessor.getUserManager() ;
def userkey = changeItems.sort(false).last().getUserKey();
} else {

Try that! 

Works fine, thanks!

Unfortunately, JIRA does not have one.   You can vote for these issues to attempt to get JIRA fixed.

You can use the changed or was operators on the assignee, fixed version, priority, reporter, resolution and status fields though.

status changed after -5d by George


There are some free and paid plugins to help with comments like

Here is an exampled script using Powerscript.

Add post function to all transitions of workflow and do bulk transition.

JFieldChange [] changes = lastIssueChanges(key);

number i = size(changes) -1;

if (i >= 0){

string fullname = ldapUserRecord("displayName", "(sAMAccountName=" + changes[i].user + ")");

string lastupdatedby = changes[i].user;

if (fullname != ""){

lastupdatedby = fullname + " (" + lastupdatedby + ")";


customfield_39271 = lastupdatedby; //Last updated by


I don't know how or where to use either of the script suggestions above. Can you provide more detail? Or, can someone suggest how to achieve this with Power BI?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

308 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you