# Vote Blocker

> **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-Do-Not-Vote-for-Resolved-Issue.html).

This workflow locks an issue so that users cannot vote for the issue after it is resolved.

| Name | @jetbrains/youtrack-workflow-resolved-votes |
| Previous Title | Do Not Vote for Resolved Issue |
| Auto-attached | no |
| Rules |      * Block votes for resolved issues (on-change)    |

## Use Case

This workflow helps you keep users from voting for issues that are already resolved.

## Rules

This workflow supports the following rule:

| Title | Description |
| --- | --- |
| Block votes for resolved issues | When a user votes for an issue, the on-change rule in this module verifies that the issue is already in a state that is marked as  Resolved.        * If the issue is not resolved, the vote is added to the issue.    * If the issue is resolved, a warning is displayed. The vote is not added to the issue.    |

