Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Jira] get_issue_changelog broken? #1396

Open
JohnStrunk opened this issue May 22, 2024 · 2 comments
Open

[Jira] get_issue_changelog broken? #1396

JohnStrunk opened this issue May 22, 2024 · 2 comments

Comments

@JohnStrunk
Copy link

I recently updated from 3.41.11 to 3.41.13, and now I'm having problems w/ get_issue_changelog.

It looks like #1375 changed the endpoint that is used, and I've started getting 404 from my Jira server.

Call: client.get_issue_changelog("PROJ-123")

Response info:

{'message': 'null for uri: '
            'https://myserver.com/rest/api/2/issue/PROJ-123/changelog',
 'status-code': 404}

Jira server: v9.12.7

JohnStrunk added a commit to JohnStrunk/jira-summary that referenced this issue May 22, 2024
The latest version of atlassian-python-api (3.41.13) seems to have broken
get_issue_changelog(). This locks to the version prior to the suspected
change, pending the resolution of:
atlassian-api/atlassian-python-api#1396

Signed-off-by: John Strunk <jstrunk@redhat.com>
@gonchik
Copy link
Member

gonchik commented May 23, 2024

@JohnStrunk as I see made mismatch.
let me wrap that part

        """
        Get issue related change log
        :param issue_key:
        :param start: start index, usually 0
        :param limit: limit of the results, usually 50
        :return:
        """
        base_url = self.resource_url("issue")
        url = "{base_url}/{issue_key}?expand=changelog".format(base_url=base_url, issue_key=issue_key)
        params = {}
        if start:
            params["startAt"] = start
        if limit:
            params["maxResults"] = limit
        return (self.get(url) or {}).get("changelog", params)

@gonchik
Copy link
Member

gonchik commented May 23, 2024

There I will adjust it
#1398

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants