# Referred Issues

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

This workflow automatically adds a refers to link when another issue is mentioned by its ID in a comment or description.

| Name | @jetbrains/youtrack-workflow-referred-issues |
| Auto-attached | no |
| Rules |      * Add "refers to" link to an issue when the issue ID is added to a description or comment (on-change)    |

## Use Case

This workflow helps you automate the creation of links between related issues.

This workflow references an issue link type with the name refers to. This is a custom issue link type that is not available in YouTrack by default. To use this workflow, you need to add this issue link type to your system. When you create this issue link type, enter the following values:

| Field | Description |
| --- | --- |
| Name | Reference (or any other name, this does not affect the workflow) |
| Outward Name | refers to |
| Link Direction | Undirected |

For general instructions, see [Create
Issue Link Type](link-types.html#Creating_Link_Type).

## Rules

This workflow supports the following rule:

| Title | Description |
| --- | --- |
| Add "refers to" link to an issue when the issue ID is added to a description or comment |       This on-change rule in this module checks the description and comment for an issue for references to other issues. When one or more references are found, the issues are added as refers to links.     |

