Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing the plug-in database

lei
Contributor
March 15, 2022

I want to access the third party plug-in database.

But it not have api.

I'm jira admin.

so I can find the database it uses. How do I use it? 

Can ActiveObjects  only be used for its own class?

please help me.

1 answer

1 accepted

0 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Champion
March 15, 2022

Hi @lei ,

please use the following API (https://docs.atlassian.com/software/jira/docs/api/8.0.2/com/atlassian/jira/startup/PluginInfoProvider.html) .

I used in my plugin in order to retrieve all plugins installed on my server instance.

Using that class you can retrieve System or User plugins.

Hope this helps,

Fabio

lei
Contributor
March 15, 2022

I want use it database or access it url.

Is PluginInfoProvider OK?I'll try. If you know please tell me. thank you!

Fabio Racobaldo _Herzum_
Community Champion
March 15, 2022

PluginInfoProvider is an APi that, used in your own plugin code, can provide you info about plugin installed.

I don't figure out what you mean with "I want use it database or access it url."

lei
Contributor
March 15, 2022

The database belongs to a third-party plug-in

image.png

I want to use its data.

But ‘6BC5A4’ makes me powerless. Unable to use SQL. So I want use it " atlassian-plugin.xml =><servlet><url-pattern>..."  I said URL..

---------

If there is data in the database. Can I get it by using “PluginInfoProvider”?or How to do?

Fabio Racobaldo _Herzum_
Community Champion
March 15, 2022

Got it! No, you can't access that data using PluginInfoProvider. You should ask to app team if they have some api to retrieve info.

Ciao,

Fabio

Like lei likes this

Suggest an answer

Log in or Sign up to answer