Workflow Script - Import Other Libraries Follow
Hi Guys,
I'm looking to build a workflow script that uses third party services (like AWS).
Is there a way to import libraries for such scripts?
Something like:
const AWS = require("aws-sdk"); // this results in: An error was encountered while loading the bcl.aws.comprehend/detect-pii module, which was caused by Invalid full name format: aws-sdk
Thanks!
Please sign in to leave a comment.
Hi!
I'm Sergey from the YouTrack team.
There's no such option right now, I'm afraid. The only solution for this case is to copy the code and create a custom workflow rule, though it might not work for all the cases.
So, basically, my only option is to have a HTTP API somewhere accessible by YT and use HTTP calls to that from the workflow code, right?
Thanks!
Yes, that can also be an option, or use a custom rule as described above if applicable to your case.