Assign a spot check tag to a portion of tickets using an RNG

Hello.

I would like to assign a "Spot check" hidden tag to a portion of tickets that get moved to done.

I had hoped to be able to use a simple `if (Math.random() > 0.9){<add tag method>}` but I don't appear to be able to.

How can I randomly assign a tag to a portion of tickets as they move through to a particular state so an external stakeholder can ensure they are up to an expected standard.

 

3 comments
Comment actions Permalink
Official comment

Hello Orrin,

unfortunately there is no such method in our current Workflow Language. We are redesigning our workflows right now, and after release this method will be available, but for now answer is no, you can't use it, unfortunately.

Comment actions Permalink

Any timeline or further info on what those improvements might be?

Outside of workflows I could implement something with a bit of manual effort and the api. Whether I do this or not depends on the timeline for improvements to workflows.

0
Comment actions Permalink

We don't announce the timeline or roadmap yet, but please watch the updates in our blog: https://blog.jetbrains.com/youtrack/ The announce should appear there.

BTW, have you taken a look at this feature? https://www.jetbrains.com/help/youtrack/incloud/7.0/Workflow-REST-API.html You can now use REST API methods in workflows.

Please let me know if I can answer any other questions. Thank you!

0

Please sign in to leave a comment.