How to check if plugin is installed in jira "programmatically" ?

Victor Viana January 16, 2013

Does anyone know how to check if a particular plugin is installed in jira, but it has to be programmatically?

1 answer

1 accepted

3 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 16, 2013

Try this:

ComponentAccessor.getPluginAccessor().isPluginEnabled(key)

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 16, 2013

Actually PluginAccessor is easier. I have updated the answer.

Victor Viana January 16, 2013

How do I obtain an instance of this class?

Victor Viana January 16, 2013

I am trying to test to see if it worked, but I think it solves.

Thank you (y)

Now leveraging its knowledge, know how to get an instance of "EventPublisher"? Now I can not get an instance of it by the builder as it has in this tutorial:

https://developer.atlassian.com/display/JIRADEV/Writing+JIRA+event+listeners+with+the+atlassian-event+library

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 16, 2013

You can inject it in the comstructor as given in the example.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events