I want to clean the comments from youtrack by scheduler in a for Each loop with:
action: (ctx) => {
var issue = ctx.issue;
issue.comments.added.forEach(function(comment) {
// https://stackoverflow.com/questions/822452/strip-html-from-text-javascript
comment.text = jQuery(comment.text).text();
});
},
But I get the error: jQuery is not defined.
How can I include jQuery in the script to use it to clean the comment from HTML tags.