if (relatedIssue==null)
{
    print("creating");
}
else
{
    print('commenting on '+ relatedIssue.getKey())
}