# Watcher by Votes

> **Note: Availability**
> This workflow uses functionality that is only available using the JavaScript Editor. This means that it is unavailable for editing in the Workflow Constructor.
>
>
>
> To learn more about this workflow, refer to the corresponding page in our [Developer Portal](https://www.jetbrains.com.cn/en-us/help/youtrack/devportal/Workflow-Watcher-by-Votes.html).

This workflow automatically sets the project owner (referenced in the code as the `project lead`) as a watcher when an issue receives a specific number of votes.

| Name | @jetbrains/youtrack-workflow-watcher-by-votes |
| Auto-attached | no |
| Rules |      * Add project lead to watchers list when an issue receives 10 votes (on-change)    |

## Use Case

This workflow helps you automatically raise the visibility of an issue when it receives a specific number of votes. You can customise this workflow to add other users as watchers or modify the number of votes.

## Rules

This workflow supports the following rule:

| Title | Description |
| --- | --- |
| Add project lead to watchers list when an issue receives 10 votes | When an issue receives ten votes, this rule automatically sets the project owner as a watcher for the issue.   |

