Use case
In many workflows, especially in design, QA, or content review, only specific attachments should be copied to follow-up issues, like finalized mockups or approved files.
Instead of copying every file, you can use regular expressions to filter attachments based on their filename. This allows you to copy only the files that match naming conventions such as final_, *_approved, or specific version tags like v2 or v3.
For example, during the transition from a development story to a QA sub-task, you might only want to copy reviewed design files. By using a pattern like:
^final_.*|.*_approved\..*
you ensure that only clean, production-ready assets are passed along.
This reduces clutter, avoids confusion, and ensures downstream teams (QA, legal, marketing) receive only what’s relevant.
⚒️ Configuration
Mode*
Choose Single issue.
Issue type*
Choose Selected issue type and Sub-task as its value.
The issue type must be present in your system.
Parent issue*
Select current issue.
Summary*
Insert the following expression:
QA review for %{issue.summary}
Attachments
Use "Attachments filtered by regular expression" and insert a regular expression that matches only finalized or approved files, e.g.:.
In the popup field:
Set the Value* to set field value manually (parser expression) and insert the following expression:
^final_.*|.*_approved\..*
The expression can be adopted to your needs.
|
Only final files |
|
|
|
Only approved documents |
|
|
|
Version-specific filtering (e.g., v2 or v3) |
`.*_v(2 |
3)..*` |
|
Specific date in filename |
|
|
|
Exclude drafts/temp files |
`^(?!.*(draft |
temp)).*` |
📚 Related examples