Skip to content

Jira: Cloud and Server version diff request for changelog #1398

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

Merged
merged 1 commit into from
May 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,13 +1221,18 @@
:return:
"""
base_url = self.resource_url("issue")
url = "{base_url}/{issue_key}/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, params=params)

if self.cloud:
url = "{base_url}/{issue_key}/changelog".format(base_url=base_url, issue_key=issue_key)
return self.get(url, params=params)

Check warning on line 1232 in atlassian/jira.py

View check run for this annotation

Codecov / codecov/patch

atlassian/jira.py#L1231-L1232

Added lines #L1231 - L1232 were not covered by tests
else:
url = "{base_url}/{issue_key}?expand=changelog".format(base_url=base_url, issue_key=issue_key)
return (self.get(url) or {}).get("changelog", params)

Check warning on line 1235 in atlassian/jira.py

View check run for this annotation

Codecov / codecov/patch

atlassian/jira.py#L1234-L1235

Added lines #L1234 - L1235 were not covered by tests

def issue_add_json_worklog(self, key, worklog):
"""
Expand Down