From c0ffdc2d0bf76f29c7945fea678d93415f696b4c Mon Sep 17 00:00:00 2001 From: SDeS <62426029+DmitriyStruzhkin@users.noreply.github.com> Date: Wed, 25 May 2022 00:15:26 +0300 Subject: [PATCH] Method for getting info about license object (#942) ref link https://confluence.atlassian.com/jirakb/how-to-access-upm-rest-api-for-license-details-777021716.html --- atlassian/jira.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/atlassian/jira.py b/atlassian/jira.py index af46c0396..1d0d110ef 100644 --- a/atlassian/jira.py +++ b/atlassian/jira.py @@ -2868,6 +2868,14 @@ def get_plugin_info(self, plugin_key): url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key) return self.get(url, headers=self.no_check_headers, trailing=True) + def get_plugin_license_info(self, plugin_key): + """ + Provide plugin license info + :return a json specific License query + """ + url = f"/rest/plugins/1.0/{plugin_key}-key/license" + return self.get(url, headers=self.no_check_headers, trailing=True) + def upload_plugin(self, plugin_path): """ Provide plugin path for upload into Jira e.g. useful for auto deploy