Last active
February 17, 2017 11:32
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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