Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Last user to resolve the ticket

Marc Jason Mutuc
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 25, 2019

I'm using script runner to hopefully do this. Can someone help? I'm not very good at scripting and have been using other add-ons to fill this requirement. Had to uninstall the add-on because it was causing some errors which stopped a very critical process that we had. 

2 answers

1 accepted

0 votes
Answer accepted
Marc Jason Mutuc
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2019

Used JMCF instead.

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
January 25, 2019

Hello Marc,

You can either

  1. use Enhancer Plugin's First/Last Resolution User custom field easily
  2. or use something like below script to grab the user. Please test if you need to use this script, because I did not test it, I just typed here in to give some clue.
def changes = changeHistoryManager.getChangeHistoriesForUser(issue, user)
def lastResolvedUser
changes.reverse().each{
it.changeItems.each{
 if (it.containsKey("field") && it.getString("field").equals("resolution") {
if (it.get("newfield") != null && it.get("oldfield") == null) {
lastResolvedUser = it.authorObject
}
}
}
}

Suggest an answer

Log in or Sign up to answer