Are Subdirectories In a Workflow Now Supported?
Afaict, it is not physically possible to create a sub directory in the youtrack workflow editor. But it is possible to create a sub directory in a code editor (eg: vscode) and it is possible to develop YouTrack javascript workflows locally in a code editor (eg: vscode). I see there is a post that is just over 4 yrs old now that seems to be asking the question but I'm not sure if the answer is still relevant or if the op in that thread is actaully asking a different qustion: https://youtrack-support.jetbrains.com/hc/en-us/community/posts/4410739884050-Sorting-Workflows-in-directories
If I create a javascript workflow locally - and I use a subdirectory in that workflow - will the workflow run without issue after uploading it to my instance? Here is an example (what I was actually hoping would work):app.jsresolver.jstemplates/├── templateA.js├── templateB.js├── templateC.js└── templateD.js
Please sign in to leave a comment.
Hi Jake,
I'm Sergey from the YouTrack Team. Thanks for reaching out!
Unfortunately, subdirectories in workflows aren't currently supported. If you try to upload a workflow with the directory structure you've described, it likely won't work as expected because YouTrack only supports a flat, single-level file structure for workflows.
There's an existing feature request for this: JT-88982 Support Subfolders for Workflow Rules. Please feel free to vote for it, as your vote helps us measure demand and automatically subscribes you to updates. Just sign in to JetBrains YouTrack and click the thumbs-up icon.
As a workaround, you can organize your workflows using naming conventions with prefixes or delimiters. While not as elegant as subdirectories, this approach keeps related files grouped and easier to navigate when working with complex workflows.
Let me know if you have any other questions!
Ok, thank you. I did/do vote for this.