Skip to content

Commit

Permalink
WIP PR changes - atlassian-api#1357
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg committed Mar 29, 2024
1 parent 6bcd2c0 commit 6a83b0b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,11 +1106,7 @@ def get_issue(self, issue_id_or_key, fields=None, properties=None, update_histor
params["properties"] = properties
if expand:
params["expand"] = expand
if update_history is True:
params["updateHistory"] = "true"
if update_history is False:
params["updateHistory"] = "false"

params["updateHistory"] = str(update_history).lower()
return self.get(url, params=params)

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

def get_issue_status_changelog(self, issue_id):
# Get the issue details with changelog
issue_id = self.get_issue(issue_id, expand="changelog")
response_get_issue = self.get_issue(issue_id, expand="changelog")
status_change_history = []
for history in issue_id["changelog"]["histories"]:
for history in response_get_issue["changelog"]["histories"]:
for item in history["items"]:
# Check if the item is a status change
if item["field"] == "status":
Expand Down

0 comments on commit 6a83b0b

Please sign in to comment.