atlassian-python-api
atlassian-python-api copied to clipboard
/wiki added in init and calls leads to wrong urls
When I tried using the get_content_template method, I saw that the URL contains wiki/wiki/..
The url in the call(s) includes wiki/ and the init always adds wiki to the baseURL for cloud instances.
if ("atlassian.net" in url or "jira.com" in url) and ("/wiki" not in url):
url = AtlassianRestAPI.url_joiner(url, "/wiki")
def get_content_template(self, template_id):
url = "wiki/rest/api/template/{template_id}".format(template_id=template_id)
Saw that this is the content of PR https://github.com/atlassian-api/atlassian-python-api/pull/863#pullrequestreview-829665985