Hello,
My goal is to transition 10% of tickets directly to Acceptance, skipping Testing by way to automation.
There is not enough information to get this to work...
I'm stuck on the RandomNumber Variable. In this case, I am just trying to get from 1 to 2 to work, before moving up to 1 to 10.
Then I want the automation to compare the random number (1 to 10) to compare it to 1. If it equals 1, probably 10% of the time, then move it to Acceptance.
If there is an easier way to identify 10% of tickets, please let me know.
Thank you
Hi @LynnG
Regarding the math...you could use the random() function, which returns a value between 0 and 1, and then adjust to get your range. For example for 1 to 2:
{{#=}}round(random()*2+0.49,0){{/}}
Although that may not do what you asked...
Instead it will have a X% chance of skipping something (and will actually skip more / less) as the checks are independent for each rule triggering.
It seems you want to identify 10% of the items to skip at the time the first item enters Ready for Testing. I do not believe that is easy to do in a rule for a random 10% selection of items without replacement.
The rule could be adjusted to select up to 10% and no more by adding a "skipped" indicator to items (e.g. with a custom field, label, issue property), and checking if 10% have been skipped yet using Lookup Issues and JQL. If not at 10% yet, perform the random check to decide about skipping, and add the indictor when skipped. Else, do not skip.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.