code: def issue_type_by_name(self, name):
          
          issue_types = self.issue_types()
          try:
              issue_type = [it for it in issue_types if it.name == name][0]
          except IndexError:
              raise KeyError("Issue type '%s' is unknown." % name)
          return issue_type
docs: :param name: Name of the issue type
          :type name: str
          :rtype: IssueType