How to define entry point for a plugin?

Hi,

I am a licensed user of JIRA.

I have followed the steps provided in the below link to setup JIRA plugin development environment.

https://developer.atlassian.com/display/DOCS/Set+up+the+Atlassian+Plugin+SDK+and+Build+a+Project

However, I am not able to understand how and where (in which file) do we define the entry point function of a plugin.

Any help would be highly appreciated.

2 answers

1 accepted

Hi Deepak,

You can have multiple entry points in your plugin, depending on what you are trying to accomplish.

The Bundle Activator (as per OSGi spec) is called when your plugin starts up. Other than that, you may hook your plugin in one of the many places JIRA allows you to. (for example, see https://developer.atlassian.com/display/JIRADEV/Web+Fragments , but there are more). If you could tell us what you are trying to do, we might be able to help further.

HTH

Now i am creating a new JIRA Plugin,but having problem while defining the entry point. i don't understand where to start my code.Kindly help me by quick reply..

If you're using the Atlassian SDK and ran atlas-create-jira-plugin, then you're ready to go. That's the structure.

Next you'll have to look into how would the user interact with it and that'll be the entry-point. See the link I gave you.

0 vote

You should know that the heart of a plugin is the Atlassian plugin descriptor and it defines a set of plugin modules.

Each module type has its own entry point.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

362 views 0 6
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