def setResult(self, result: ResultType=ResultType.FAILED, comment=None):
    '\n        Set the result of this record and save it.\n\n        :param result: The result of this record\n        :param comment: Comment string, may contain HTML\n        '
    if (comment is not None):
        self.setComment(comment)
    if (self.result is not None):
        self.result.id = result.value
    else:
        self.result = self._polarion.EnumOptionIdType(id=result.value)
    self.save()
Set the result of this record and save it.

:param result: The result of this record
:param comment: Comment string, may contain HTML
def setResult(self, result: ResultType=ResultType.FAILED, comment=None):
    '\n        Set the result of this record and save it.\n\n        :param result: The result of this record\n        :param comment: Comment string, may contain HTML\n        '
    if (comment is not None):
        self.setComment(comment)
    if (self.result is not None):
        self.result.id = result.value
    else:
        self.result = self._polarion.EnumOptionIdType(id=result.value)
    self.save()