From 26cf6911729dd21bab22551358987015549d28d3 Mon Sep 17 00:00:00 2001 From: gkowalc <> Date: Wed, 20 Mar 2024 10:01:23 +0100 Subject: [PATCH] hotfix get_issue_tree_recursive --- atlassian/jira.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atlassian/jira.py b/atlassian/jira.py index 068dc366c..776bf3f2a 100644 --- a/atlassian/jira.py +++ b/atlassian/jira.py @@ -1730,7 +1730,7 @@ def get_issue_tree_recursive(self, issue_key, tree=[], depth=0): x for x in tree if issue_link["inwardIssue"]["key"] in x.keys() ]: # condition to avoid infinite recursion tree.append({parent_issue_key: issue_link["inwardIssue"]["key"]}) - self.get_issue_tree( + self.get_issue_tree_recursive( issue_link["inwardIssue"]["key"], tree, depth + 1 ) # recursive call of the function for subtask in subtasks: @@ -1738,7 +1738,7 @@ def get_issue_tree_recursive(self, issue_key, tree=[], depth=0): parent_issue_key = issue["key"] if not [x for x in tree if subtask["key"] in x.keys()]: # condition to avoid infinite recursion tree.append({parent_issue_key: subtask["key"]}) - self.get_issue_tree(subtask["key"], tree, depth + 1) # recursive call of the function + self.get_issue_tree_recursive(subtask["key"], tree, depth + 1) # recursive call of the function return tree def create_or_update_issue_remote_links(