when an issue is updated I'd like to save the author of the changes in a custom field

That's pretty much it.

I need a custom field called "Last edited by:", or something like that.

I can not use post functions because I want the custom field updated even if there's no status transition. Also, I don't know how to capture the name of the author of the changes (i've used %current_user% in some post functions but as i've said post functions are aout of the question in this case).

Thanks in advance.

1 answer

0 vote
Tarun Sapra Community Champion Aug 31, 2017

You need a custom listener or if you have script runner plugin installed then you need to implement an listener, which listens for issue update events and updates the custom field with the name of the event author.

Tarun Sapra Community Champion Aug 31, 2017

Using event.getUser() you can get the author of the event and then populate the custom field with that value

https://developer.atlassian.com/static/javadoc/jira/latest/reference/com/atlassian/jira/event/issue/IssueEvent.html#getUser()

Thanks a lot for the quick response. I will check out the custom listener approach as I do not have the script runner plugin installed.

The issue would be that my coding skills are quite limited to using Matlab to solve physics problems so if there's any hope to avoid coding I would prefer that.

From https://confluence.atlassian.com/adminjiraserver072/listeners-828787617.html I understand there's already a IssueEventListener (The main listener interface in JIRA, used whenever anything happens to an issue).

Could this be already what I need? I guess I'd have to modify it slightly but that's much easier than having to start from scratch.

If so... What would be the steps I should follow? How do I get that "com.atlassian.jira.event.issue.IssueEventListener" and where do I save it so I can add the new listener (.../WEB-INF/lib?)?

Please excuse any nonsense I might have said and thanks again.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,130 views 6 19
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot