workflowyoutrack

youtrack workflow get comment author



    // --- #1 issueCommentIsAdded ---
    const issue_0 = ctx.issue;

    const issueCommentIsAddedFn_0 = () => {
    const if_added_by = issue_0.comments.added.isNotEmpty() && issue_0.comments......... == "autobot" 
      return if_added_by 
    };

I need to check if the comment was from a specific user. then perform some action


Solution

  • issue_0.comments.last().author.login
    

    is working.