text: import komand
  from .schema import AssignIssueInput, AssignIssueOutput, Input, Output, Component
  
  # Custom imports below
  from komand.exceptions import PluginException
  
  
  class AssignIssue(komand.Action):
  
      def __init__(self):
          super(self.__class__, self).__init__(
              name='assign_issue',
              description=Component.DESCRIPTION,
              input=AssignIssueInput(),
              output=AssignIssueOutput())
  
      def run(self, params={}):
          """ Run action"""
          id_ = params[Input.ID]
          issue = self.connection.client.issue(id=id_)
  
          if not issue:
              raise PluginException(cause=f'No issue found with ID: {id_}.',
                                    assistance='Please provide a valid issue ID.')
  
          result = self.connection.client.assign_issue(issue=issue, assignee=params[Input.ASSIGNEE])
          return {Output.SUCCESS: result}
  