Found an outdated (i.e. doesn’t work) script that returns the last user to update an issue:
I’ve updated it to make it work again. You MUST have the Search Template AND Script Runner template set to User Picker, otherwise results will return “Anonymous” user.
I’d add that you’ll want to consider where and how this field will be used, as people hitting it over the API or trying to bulk-download large numbers of issues into excel could cause issues for themselves or the system as a whole.
If you expect that type of usage, then you might want to consider a listener that sets the field value rather than a “live” field which must be recalculated on every access.
The issue event will contain the user value you’re looking for, without needing to search any history