Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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!

Where does this code go? Sorry I am new to JIRA.

Like Jeff Dickinson likes this
Andy Heinzer Atlassian Team Aug 07, 2020

This is groovy code.  In order to run this within Jira, you would need the Scriptrunner app.  There might be other differing solution from other Marketplace vendors as well.

Like Dave Liao likes this

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


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

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 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