class AtlassianAppVersions::Plugin

Represents a plugin, with information taken from marketplace.atlassian.com

Public Instance Methods

allVersions() click to toggle source
# File lib/atlassian_app_versions.rb, line 206
def allVersions
    versionsJSON.collect { |v| PluginVersion.new(v["version"], self) }
end
allissueJQL(fromVer=nil, toVer=nil) click to toggle source

A few plugins are tracked on JAC, so if asked for JQL, return their issue-tracker link.

# File lib/atlassian_app_versions.rb, line 211
def allissueJQL(fromVer=nil, toVer=nil)
    links = versionsJSON.first["links"] 
    if links then
        tracker = links.find { |l| l["rel"] == "issue-tracker" }
        if tracker then
            if tracker["href"] =~ /jira\.atlassian\.com/ then
                templateJQL(fromVer, toVer)
            else
                nil
            end
        end
    end
end
product_type() click to toggle source
# File lib/atlassian_app_versions.rb, line 202
def product_type
    "plugins"
end
versionsJSON() click to toggle source
# File lib/atlassian_app_versions.rb, line 199
def versionsJSON
    marketplaceJSON["versions"]["versions"]
end