#23 Add support for labels when syncing to jira
Merged 6 years ago by ralph. Opened 6 years ago by pingou.
pingou/sync-to-jira add_labels_support  into  develop

file modified
+5
@@ -131,6 +131,11 @@ 

          kwargs['project'] = dict(key=issue.downstream['project'])

      if issue.downstream['component']:

          kwargs['components'] = [dict(name=issue.downstream['component'])] # TODO - make this a list in the config

+     if issue.downstream['labels']:

+         labels = issue.downstream['labels']

+         if isinstance(labels) != list:

+             labels = [labels]

+         kwargs['labels'] = labels

  

      log.info("Creating issue.")

      downstream = client.create_issue(**kwargs)

no initial comment

Pull-Request has been merged by ralph

6 years ago
Metadata