@@ -1106,11 +1106,7 @@ def get_issue(self, issue_id_or_key, fields=None, properties=None, update_histor
1106
1106
params ["properties" ] = properties
1107
1107
if expand :
1108
1108
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 ()
1114
1110
return self .get (url , params = params )
1115
1111
1116
1112
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):
1866
1862
1867
1863
def get_issue_status_changelog (self , issue_id ):
1868
1864
# 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" )
1870
1866
status_change_history = []
1871
- for history in issue_id ["changelog" ]["histories" ]:
1867
+ for history in response_get_issue ["changelog" ]["histories" ]:
1872
1868
for item in history ["items" ]:
1873
1869
# Check if the item is a status change
1874
1870
if item ["field" ] == "status" :
0 commit comments