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?
Unfortunately, JIRA does not have one. You can vote for these issues to attempt to get JIRA fixed.
https://jira.atlassian.com/browse/JRA-1973
https://jira.atlassian.com/browse/JRA-15235
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
https://marketplace.atlassian.com/plugins/com.capitalcityconsultants.jira.plugins.customfields.ccc-lastcomment
https://ecosystem.atlassian.net/wiki/display/JTOOL/JIRA+Toolkit+Plugin
https://marketplace.atlassian.com/plugins/com.primefieldsoftware.jira.essentialcustomfields
You can also use kepler custom fields to get the last comment information as well. https://marketplace.atlassian.com/plugins/com.keplerrominfo.jira.plugins.keplercf http://atlassian.techsolcom.ca/en/news/entry/improve-jira-dashboards-by-showing-the-last-issue-comment
import com.atlassian.jira.component.ComponentAccessorimport com.atlassian.jira.user.util.UserManagerdef changeHistoryManager = ComponentAccessor.getChangeHistoryManager()def changeItems = changeHistoryManager.getAllChangeItems(issue)if (changeItems?.size() > 0) {def userManager = ComponentAccessor.getUserManager() ;def userkey = changeItems.sort(false).last().getUserKey();userManager.getUserByKey(userkey);} else {null}
Try that!
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?
Works fine, thanks!
Where does this code go? Sorry I am new to JIRA.
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.
It looks like you're new here. Sign in or register to get started.