On-Schedule workflow isn't running

* This is a template for an on-schedule rule. This rule defines
* operations that are performed on a set schedules.
* For details, read the Quick Start Guide:
* https://www.jetbrains.com/help/youtrack/server/2022.3/Quick-Start-Guide-Workflows-JS.html
const entities = require('@jetbrains/youtrack-scripting-api/entities');
var workflow = require('@jetbrains/youtrack-scripting-api/workflow');
var dateTime = require('@jetbrains/youtrack-scripting-api/date-time');
exports.rule = entities.Issue.onSchedule({
 // TODO: give the rule a human-readable title
 title: 'Check_tasks',
 // TODO: define which issues are processed
 search: 'state: {6. Code Review}',
 // TODO: set the schedule
 // For format details refer to http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html
 cron: "0 * * * * ?",
 // TODO: to mute notifications for changes that are applied by this rule, set to true
 muteUpdateNotifications: true,
 guard: (ctx) => {
    return true;
 action: (ctx) => {
   const issue = ctx.issue;
   // TODO: specify what to do at the scheduled time
 requirements: {
   // TODO: add requirements


So, I expect to see 1 in the YT  workflow console every minute but it doesn't happen.

What's wrong?


1 comment


Most probably, there are simply no issues in the project with this workflow that are found by the state: {6. Code Review} search. Try changing the search query to check it.


Please sign in to leave a comment.