Forums

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

How can I find the version of installed apps in JIRA programatically?

pav
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 6, 2024

Hi there,

 

I am working on a software version tracking tool on our platform, and I'm trying to understand if there is some way I can query the API or alternatively use some library to get the versions and names of the installed apps inside of a JIRA Data Center instance?

This is an example list of the sort of apps I am looking for:

  • BigPicture
  • eazyBI Reports and Charts
  • Admin Toolbox
  • Zephyr Scale

I've tried looking within the API but nothing seems to stand out, I understand I can't specifically search for the actual name of the app and need to use a key, so if I was looking for BigPicture the relevant key would be '1212259'.

I've tried to create a support zip as another post sort of aimed towards it, but that doesn't seem to return any of the apps in the above list. I did create a very basic one (no Configuration/Log/Other Files were ticked) so if that's the case I'd appreciate what sorts of settings I should tick to get my results.

Alternatively, if there is a simpler solution please let me know how I can query JIRA for that information. I know they are there as I see them in the GUI, but again not sure how to access them with code. I am using Python for most of my scripting, but I understand that I might have to use bash or similar to support.

 

Thanks in advance for any and all help!

2 answers

1 accepted

0 votes
Answer accepted
nick gleed August 6, 2024

Yeah what Anandhi said .....

curl https://jira.your_url/rest/plugins/1.0/ --header 'Authorization: Basic ##########' | jq '.plugins[] | select(.userInstalled == true and (.vendor.link | test("atlassian.com") | not) and (.name | test("System Plugin") | not)) | {name: .name, version: .version, description: .description, marketplaceLink: .vendor.marketplaceLink, link: .vendor.link}'

0 votes
Anandhi Arumugam _Cprime_
Community Champion
August 6, 2024

Hi @pav The endpoint below should give you the list of plugins on the system.

GET <Base_URL>/rest/plugins/1.0/

 Filter by the keys "name" and "userInstalled":true. Once you have the list, you can get the version by the key "version". Hope this helps!

Anandhi Arumugam _Cprime_
Community Champion
August 6, 2024

The response should look like this.

{
      "enabled": true,
      "name": "<>",
      "version": "<>",
      "userInstalled": true,
      "optional": true,
      "static": false,
      "unloadable": false,
      "description": "",
      "key": "",
      "usesLicensing": true,
      "remotable": false,
      "vendor": {
        "name": "<>",
        "link": "<>"
      }
    }

Suggest an answer

Log in or Sign up to answer