Skip to content

Instantly share code, notes, and snippets.

@destan
Last active February 17, 2017 11:32
Show Gist options
  • Save destan/7435a140b042fe893a556807fccaa61f to your computer and use it in GitHub Desktop.
Save destan/7435a140b042fe893a556807fccaa61f to your computer and use it in GitHub Desktop.
Dump available library versions in Jira using OSGi Browser https://developer.atlassian.com/docs/developer-tools/using-the-osgi-browser
// on /plugins/servlet/upm/osgi page execute following and wait for all requests to complete
jQuery('h4').each( (i, e) => e.click() )
// then dump versions
let results = {}
jQuery('.upm-plugin-row h4').each(function() {
let name = jQuery(this).text()
let version = jQuery(this)
.closest('.upm-plugin.expandable')
.find('.upm-details.loaded dd')
.eq(14)
.text()
let result = name + ":" + version
results[name] = version
console.log(result)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment