Skip to content

Commit

Permalink
Method for getting info about license object (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyStruzhkin authored May 24, 2022
1 parent 2ca8210 commit c0ffdc2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0ffdc2

Please sign in to comment.