How to set default visible to group for a project in youtrack?

I am using the web version. The default visible for a new issue is always All Users. I have to change to foo-team member every time I created a new issue. This is super annoying. 

Is there an easy way to make default the project team?

1 comment
Comment actions Permalink
Official comment

Hello,

You can create an on-change workflow rule, which will run on issue creation and change issue visibility according to your preferences. Here you can learn more about on-change workflow rules: https://www.jetbrains.com/help/youtrack/incloud/Workflow-Tutorial.html#tutorial-create-on-change-rule.
And here is a guide on how to attach the workflow to a project: https://www.jetbrains.com/help/youtrack/incloud/Workflow-Tutorial.html.
To catch issue creation, use ctx.issue.becomesReported property in guard section. To change issue visibility settings, use  ctx.issue.applyCommand('visible to ProjectGroupName') (https://www.jetbrains.com/help/youtrack/incloud/v1-Issue.html#applyCommand), method, which will apply this command to the issue and restrict its visibility only for ProjectGroupName (put your group name instead). 
Please let me know if you have any questions. 

Please sign in to leave a comment.