Skip to content

Commit 6a83b0b

Browse files
author
Greg
committed
WIP PR changes - #1357
1 parent 6bcd2c0 commit 6a83b0b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

atlassian/jira.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,11 +1106,7 @@ def get_issue(self, issue_id_or_key, fields=None, properties=None, update_histor
11061106
params["properties"] = properties
11071107
if expand:
11081108
params["expand"] = expand
1109-
if update_history is True:
1110-
params["updateHistory"] = "true"
1111-
if update_history is False:
1112-
params["updateHistory"] = "false"
1113-
1109+
params["updateHistory"] = str(update_history).lower()
11141110
return self.get(url, params=params)
11151111

11161112
def epic_issues(self, epic, fields="*all", expand=None):
@@ -1866,9 +1862,9 @@ def set_issue_status(self, issue_key, status_name, fields=None, update=None):
18661862

18671863
def get_issue_status_changelog(self, issue_id):
18681864
# Get the issue details with changelog
1869-
issue_id = self.get_issue(issue_id, expand="changelog")
1865+
response_get_issue = self.get_issue(issue_id, expand="changelog")
18701866
status_change_history = []
1871-
for history in issue_id["changelog"]["histories"]:
1867+
for history in response_get_issue["changelog"]["histories"]:
18721868
for item in history["items"]:
18731869
# Check if the item is a status change
18741870
if item["field"] == "status":

0 commit comments

Comments
 (0)