Skip to content
Permalink
Browse files
[FLINK-22576] Set status to 'Open' when unassigning
  • Loading branch information
zentol committed May 10, 2021
1 parent fe3c5db commit f185d8654881b1a14ac11f112848aa2b7be75de7
Showing 1 changed file with 3 additions and 0 deletions.
@@ -99,6 +99,9 @@ def close_issue(self, key):

def unassign(self, key):
if not self.is_dry_run:
if self.jira_client.get_issue_status(key) == "In Progress":
self.jira_client.assign_issue(key, self.jira_client.username)
self.jira_client.set_issue_status(key, "Open")
self.jira_client.assign_issue(key, None)
else:
logging.info(f"DRY_RUN (({key})): Unassigning.")

0 comments on commit f185d86

Please sign in to comment.