# Dependencies

> **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-Dependencies.html).

This workflow prevents setting an issue state to Fixed if it has dependent issues that are not resolved.

| Name | @jetbrains/youtrack-workflow-dependencies |
| Auto-attached | no |
| Rules |      * Block users from resolving issues with unresolved dependencies (on-change)    |

## Use Case

If a user tries to fix an issue that depends on another issue that is not resolved, a warning is displayed. The issue state cannot be set to Fixed.

## Rules

This workflow supports the following rule:

| Title | Description |
| --- | --- |
| Block users from resolving issues with unresolved dependencies | When the issue state is set to Fixed, the on-change rule in this module checks the list of linked issues for depends on-links.      If there are any linked issues in the depends on list, the rule checks the current state of each linked issue.        * If all the linked issues are resolved, proceed and resolve the current issue.    * If any of the linked issues are not resolved, a warning is displayed. The transition to the Fixed state for the original issue is cancelled.    |

