def to_youtrack_comment(trac_comment):
    comment = youtrack.Comment()
    if trac_comment.author == "anonymous":
        comment.author = "guest"
    else:
        comment.author = trac_comment.author
    comment.text = trac_comment.content
    comment.created = str(trac_comment.time)
    return comment
This method converts trac comment to youtrack comment
dataset/ETHPy150Open JetBrains/youtrack-rest-python-library/python/trac2youtrack.py/to_youtrack_comment