From e7a39d41f14c0872701fa44ae673c6de2e4cb22b Mon Sep 17 00:00:00 2001 From: Bohdan Iakymets Date: Oct 15 2019 11:37:55 +0000 Subject: Fixed bug with different types of custom field Bug is related to previous RP about remote links in custom fields: https://pagure.io/sync-to-jira/pull-request/118 --- diff --git a/sync2jira/downstream.py b/sync2jira/downstream.py index 49d9c36..647898c 100644 --- a/sync2jira/downstream.py +++ b/sync2jira/downstream.py @@ -587,7 +587,10 @@ def _create_jira_issue(client, issue, config): kwargs['components'] = [dict(name=issue.downstream['component'])] for key, custom_field in custom_fields.items(): - kwargs[key] = custom_field.replace("[remote-link]", issue.url) + if type(custom_field) is str: + kwargs[key] = custom_field.replace("[remote-link]", issue.url) + else: + kwargs[key] = custom_field # Add labels if needed if 'labels' in issue.downstream.keys():