code: def attach_issue(context, id, url):
      
  
      result = component.attach_issue(context, id=id, url=url)
      if result.status_code == 201:
          utils.print_json({'id': id, 'message': 'Issue attached.'})
      else:
          utils.format_output(result, context.format)
docs: attach_issue(context, id, url)
  
      Attach an issue to a component.
  
      >>> dcictl component-attach-issue [OPTIONS]
  
      :param string id: ID of the component to attach the issue to [required]
      :param string url: URL of the issue to attach to the component[required]