Ask Your Question
3

How can I retrieve the author of a comment in a YouTrack workflow?

asked 2023-05-30 07:59:25 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-30 08:04:02 +0000

devzero gravatar image

To retrieve the author of a comment in a YouTrack workflow, you can use the comment.author property in the workflow rule.

Here's an example code snippet that demonstrates how to retrieve the author of a comment:

var author = ctx.comment.author;

In this example, ctx.comment refers to the current comment object. The author property of this object returns the full name of the user who created the comment.

You can use this code snippet within your workflow rule to perform various actions based on the author of the comment. For example, you can notify the author of the comment if a specific condition is met, or you can assign a task to the author of the comment.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-30 07:59:25 +0000

Seen: 3 times

Last updated: May 30 '23