atlassian-python-api icon indicating copy to clipboard operation
atlassian-python-api copied to clipboard

/wiki added in init and calls leads to wrong urls

Open Mooreel opened this issue 4 years ago • 1 comments

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)

Mooreel avatar Dec 12 '21 20:12 Mooreel

Saw that this is the content of PR https://github.com/atlassian-api/atlassian-python-api/pull/863#pullrequestreview-829665985

Mooreel avatar Dec 12 '21 20:12 Mooreel