| |
@@ -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)
|
| |