Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Crerate plugin listener


Hi all

The new plugin development version baffles me
It was be easier early

I can't specify components and their imports in atlassian-plugin.xml - and must use annotations. OK
I create a class

public class MyListener implements InitializingBean, DisposableBean {
private static final Logger log = LoggerFactory.getLogger(CreateListener.class);

private final EventPublisher eventPublisher;

public MyListener (EventPublisher eventPublisher) {"***************" + eventPublisher);
    this.eventPublisher = eventPublisher;

public void onIssueEvent(IssueEvent issueEvent) {"onIssueEvent");


public void afterPropertiesSet() throws Exception {"Enabling plugin");

public void destroy() throws Exception {"Disabling plugin");

And nothing happens, even the module of listener doesn't appear in list modules of plugin.
Ok - I'm adding to atlassian-plugin.xml

<listener name="Listener 1" key="issueListener1" class="....MyListener">
<description>Will listen events1.</description>

The module in the plugin appears - but still nothing happens
Added path to package to <Export-Package> in atlassian-plugin.xml

Added com.atlassian.jira.* to <Import-Package> in atlassian-plugin.xml

Nothing happens.

Please help me start

1 answer

1 accepted

2 votes
Answer accepted

I think you're mixing the old way (declaring the listener in the plugin XML) and the new way (using annotations).

You should be using annotation and not declared the thing in the XML. Here is an article with a Hello World listener you can use as sample:

Hi @Aron Gombas _Midori_ 

I'm so stipid :)

I did try this sample also - but i always before start patched logging and didn't see minimal log level is WARN

Now i did try clear example and understand my mistake - thank you

Like Aron Gombas _Midori_ likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Improving the Create Issue Experience in Jira Service Management Cloud

Hello everyone!  We are very excited to announce some much needed changes to the issue create experience in JSM (the blue "create" button) at the top of the screen.  We have just starte...

241 views 11 7
Read article

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