#118 Added ability to adding remote link to custom fields
Merged 4 years ago by ralph. Opened 4 years ago by biakymet.
biakymet/sync-to-jira links-custom-fields  into  develop

file modified
+1
@@ -67,6 +67,7 @@ 

  Custom Fields

  -------------

  Sync2Jira supports custom fields. You can pass them in as a parameter in your project ``custom-fields: {...}``.

+ If you need to add remote link to your custom field, you could use as value: `[remote-link]`.

  

  Development

  -----------

file modified
+1 -1
@@ -587,7 +587,7 @@ 

          kwargs['components'] = [dict(name=issue.downstream['component'])]

  

      for key, custom_field in custom_fields.items():

-         kwargs[key] = custom_field

+         kwargs[key] = custom_field.replace("[remote-link]", issue.url)

  

      # Add labels if needed

      if 'labels' in issue.downstream.keys():

It will be very usefull if project use custom fields that should have as value link to remote issue.

Pull-Request has been merged by ralph

4 years ago
Metadata