From 5f74ad59e8fddd277ca105b54e85834490512654 Mon Sep 17 00:00:00 2001 From: Shymon Samsel Date: Wed, 17 Jul 2024 09:23:40 -0400 Subject: [PATCH] jira/client.py: Map IssueLinkType array to string array Equality check between IssueLinkType and string always returns false. Function decorator casts IssueLinkType parameters to string, so a warning is always logged. This fixes that issue. Closes: #1875 Signed-off-by: Shymon Samsel --- jira/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jira/client.py b/jira/client.py index ff311bcd6..f485d39bc 100644 --- a/jira/client.py +++ b/jira/client.py @@ -2929,7 +2929,7 @@ def create_issue_link( Response """ # let's see if we have the right issue link 'type' and fix it if needed - issue_link_types = self.issue_link_types() + issue_link_types = list(map(lambda x: x.name, self.issue_link_types())) if type not in issue_link_types: self.log.warning(