Workflow Script - Import Other Libraries

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!

3 comments
Comment actions Permalink
Official 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. 

Comment actions Permalink

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!

0
Comment actions Permalink

Yes, that can also be an option, or use a custom rule as described above if applicable to your case. 

0

Please sign in to leave a comment.