Skip to content

/wiki added in init and calls leads to wrong urls #899

@Mooreel

Description

@Mooreel

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions