This workflow reminds users to add an attachment to an issue if an attachment is mentioned in a description or comment.
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.
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.
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.
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.