How to list user-installed apps or plugins in Jira
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
The Manage add-ons or Manage apps page lists apps (formerly known as add-ons or plugins) installed in your Atlassian application.
This is the main page for viewing, updating, and configuring apps. However, users may want to know where the installed apps in Jira can be found outside UI.
Environment
- Jira Core
- Versions 7, 8, and 9.
- Jira Software
- Versions 7, 8, and 9.
- Jira Service Management (formerly Service Desk)
- Versions 3, 4, and 5.
Solution
There are two options we can leverage to get this information.
Solution 1:
We can use xmlstarlet or GREPs to filter the apps in the application.xml file which can be created from the support.zip.
How to get user-installed plugins name info outside of UI:
- Generate a support.zip;
- Unzip the content;
- Using the terminal/console, go to the application-properties folder (inside the support.zip already unzipped);
- Use the xmlstarlet app to filter the content by "User installed";
xmlstarlet sel -t -m '//plugins/plugin[bundled="User installed"]' -v name -o " " -v version -n application.xml | sort -k1,1
Such plugins are located in $JIRA_HOME/plugins/installed-plugins. If the plugin is in this directory, it's a user-installed plugin.
Solution 2:
An another way of performing this is by making a request against the REST Plugin Module at /rest/plugins/1.0/.
For example, you can use either of the the following methods to return a listing of installed plugins in Jira:
Request using sysadmin credentials:
GET /rest/plugins/1.0/
Request using curl commands:
# sample curl request for localhost
curl http://localhost:8080/jira/rest/plugins/1.0/ --header 'Authorization: Basic changeme
# sample alternative curl request for localhost
curl -u user:password http://localhost:8080/jira/rest/plugins/1.0/