Automation auto-assign 10% of tickets to skip testing

LynnG
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 25, 2024

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

Screenshot 2024-06-25 155230.png

 

Screenshot 2024-06-25 155103.png

 

Screenshot 2024-06-25 154656.pngScreenshot 2024-06-25 154817.png

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 25, 2024

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

LynnG
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 26, 2024

Hello @Bill Sheboy 

I will check will my requester and get back to you.

 

Thanks!

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events