Skip to content

Commit 591ca2c

Browse files
authored
[Jira] Make get_issue_changelog start and limit work. (#1375)
* [Jira] Make get_issue_changelog start and limit work. The result will be formatted differently. * Try to get the read the docs build working.
1 parent d7f8676 commit 591ca2c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.readthedocs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
# Required
66
version: 2
77

8+
build:
9+
os: ubuntu-lts-latest
10+
tools:
11+
python: "3.8"
12+
813
# Build documentation in the docs/ directory with Sphinx
914
sphinx:
1015
configuration: docs/conf.py

atlassian/jira.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,13 +1221,13 @@ def get_issue_changelog(self, issue_key, start=None, limit=None):
12211221
:return:
12221222
"""
12231223
base_url = self.resource_url("issue")
1224-
url = "{base_url}/{issue_key}?expand=changelog".format(base_url=base_url, issue_key=issue_key)
1224+
url = "{base_url}/{issue_key}/changelog".format(base_url=base_url, issue_key=issue_key)
12251225
params = {}
12261226
if start:
12271227
params["startAt"] = start
12281228
if limit:
12291229
params["maxResults"] = limit
1230-
return (self.get(url) or {}).get("changelog", params)
1230+
return self.get(url, params=params)
12311231

12321232
def issue_add_json_worklog(self, key, worklog):
12331233
"""

0 commit comments

Comments
 (0)