Workflow editor refuse to let me do anything
I'm trying to manually create a workflow, based on this one.
However, I get stuck when I must type this part:
Inside the square brackets, I can't get the autocomplete to work.
The same happens when trying to type anything inside the 'if' block.
Here's also a screencast that shows what's happening.
Please help.
However, I get stuck when I must type this part:
[!issue.State.isResolved]
Inside the square brackets, I can't get the autocomplete to work.
The same happens when trying to type anything inside the 'if' block.
Here's also a screencast that shows what's happening.
Please help.
Please sign in to leave a comment.
Please clarify this point.
Note, you don't have to type '[]', but just put cursor inside and press Ctrl+Space.
And that's the main issue.
The Workflow editor is really a pain and so unreliable: sometime it works as expected, other times not.
For instance, I just managed to write this rule:
schedule rule Notify on no comments during time period daily at 12:00:00 [!issue.State.isResolved] { if (comments.last != null && comments.last.author.hasRole("Developer")) { project.leader.notify("[Youtrack, Notifier] Issue " + getId() + " needs your attention", "Issue " + summary + " has a recent comment added by a non-developer."); } }Then I've realized I forgot to add a "!" before comments.last.author.hasRole("Developer"), so I try to add it and the result is that I can't. See attachment.
For some reason, YouTrack doesn't like it.
Even if I delete the whole "comments.last.author.hasRole("Developer")", and try to type it from the beginning, it still show this as an error.
Deleting also the && that is preceding this condition, I finally managed to write what I wanted.
Writing workflows is really a nightmare and I can't understand how you can't see that.