timebased Workflow
Hello,
I'm completely new in Youtrack and quite overwhelmed by the JavaScript workflows. I come from a system, where you could do everything in a graphical editor.
I try to make a workflow, that checks every hour for tickets in my helpdesk projekt, that ar ein a specific state (external waiting) and have a comment older than 4 days. These tickets then should be set in their status to “closed” and should be assigned to my user.
Is that possible?
I'm happy for any hint / advice/ instruction.
Cheers Marco
Please sign in to leave a comment.
Hi Marco,
YouTrack does have a visual constructor that you can use to build workflows. However, it may lack some features for more narrow use cases. Like in your case here, there is no way to use the time of the last comment. However, you can use the time of the last update as a prerequisite. The actions that you mentioned can also be set visually. Here is an example of a similar setup:
If you do want to check for the date of the latest comment and compare it with the current date, you will need to write that code in JS. You can use the
created
property of the comment in the set of issue comments; the set itself is also a property of the issue.Then you can check whether the difference between these timestamps is greater than 345600000 (4 days in milliseconds). This should be enough to get you started, but if you experience difficulties writing this workflow further, we can help you with troubleshooting it.
Hello,
I made this workflow as described, but every ticket will be set to solved after one hour
As this requires a deeper look, could you create a support request here: https://jb.gg/ytsup? Please share the workflow you created and the result you expected vs the result you got.