Custom workflow rule to set default comment visibility

I am trying to add a workflow rule in YouTrack, which sets the visibility of newly posted comments that aren't made by a specific user.

Here's what I've tried:

rule set comment visibility to developers

when comments.added.last.author.login != "special" {
comments.last.permittedGroup = {group: Developers};
}

This works, in that all newly added comments that are not made by the special user are set as visible only to Developers. The problem is that this rule also prevents the visibility from being overridden; the visibility always reverts back to "Developers", after it is changed manually via the UI.

Obviously the rule in its current form is pretty simple and I guess (hope) there's a way to isolate the creation of a comment, rather than any update to it (which I guess is what it's currently catching).

Is there any way to only have this rule apply to newly created comments, rather than to any that have been updated?

Please sign in to leave a comment.