YouTrack Cloud 2024.1 Help

Forgotten Attachment

This workflow reminds users to add an attachment to an issue if an attachment is mentioned in a description or comment.

Name

@jetbrains/youtrack-workflow-forgotten-attachment

Auto-attached

no

Rules

  • Check description for reference to attachment (on-change)

  • Check comment for reference to attachment (on-change)

  • attach-file-utils (custom script)

Use Case

This workflow helps to make sure that users remember to attach a file to an issue when they reference an attachment in a description or comment.

Rules

This workflow contains two modules that can be attached as rules to a project and a third module that contains a custom script. This script contains common functions that are used in both rules.

Title

Description

Check description for reference to attachment

This rule scans the description for references to an attachment. If a reference is found, the user is reminded to attach a file to the issue.

Check comment for reference to attachment

This rule scans new comments for references to an attachment. If a reference is found, the user is reminded to attach a file to the issue.

attach-file-utils.js

This module contains the code that both rules use to determine whether a description or comment contains a reference to attachment. This script also contains the code that displays the message to the user.

Last modified: 20 April 2024