How can I add more classes in tutorial "Writing JIRA event listeners with the atlassian-event library"?

If I want to add a class called "Worksession", what would the atlassian-plugin.xml look like? And what other things do I need to think about?

<atlassian-pluginkey="${project.groupId}.${project.artifactId}"name="${project.name}"plugins-version="2">

<plugin-info>

<description>${project.description}</description>

<version>${project.version}</version>

<vendorname="${project.organization.name}"url="${project.organization.url}"/>

</plugin-info>

<component-importkey="eventPublisher"interface="com.atlassian.event.api.EventPublisher"/>

<componentkey="eventListener"class="com.example.tutorial.plugins.WorklogListener">

<description>Class that processes the incoming JIRA worklog events.</description>

</component>

<componentkey="workSession"class="com.example.tutorial.plugins.Worksession">

<description>Class that describes a Worksession-object</description>

</component>

</atlassian-plugin>

2 answers

1 accepted

This widget could not be displayed.

What do you mean by a class? If it is a support class which is used in the original listener class, you don't need any entries.

But if you are planning to add another listener class, what you have done is correct.

Thanks for answering!

I just wanted a support class. It worked now!

This widget could not be displayed.

Hi, I did send you another question, but the above question, is not from me.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

277 views 5 0
Join discussion

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