Clone a specific number of tickets from each assignee

Tiago Leite November 21, 2022

Hi!!

I'm having issues creating an automation that can clone a specific number of tickets from each assignee recurrently, I can't seem to find that JQL information anywhere.

My example: I want to clone, each Monday morning, 7 tickets from each assignee of my team. In total, we are close to 30 team members. How can I set that up?

Thank you for your help!

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 21, 2022

Hello @Tiago Leite 

Are you working with Jira Cloud or Jira Server/Data Center?

Please show us what you have worked out for your Automation Rule so far, and point out which part you are struggling with.

How do you identify the 7 tickets that need to be cloned? Is this a static set of issues that are the same across all people?

How do you identify the team, or the assignee/people for whom tickets should be cloned? Is this list of people a static list or subject to change?

Tiago Leite November 24, 2022

Hi @Trudy Claspill!

Thank you for reaching out! I'm currently working with Jira Cloud. 

The step I'm missing is the JQL itself, or a condition, to check/cap the cloning of tickets to 7 for each assignee. Those 7 tickets are randomly chosen from all the tickets that assignee closed during last week. Those assignees are a closed list of people that doesn't change.

All the other steps for the cloning of the ticket are easy to set, but I can't find a way to ask JIRA "clone 7 tickets per assignee from this period" or "check if 7 tickets are already cloned for this assignee » if yes, stop » if no, clone another one".

Thank you for your help!

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 24, 2022

Can you provide more information about the problem you are trying to solve with "randomly" cloning issues? I am curious about your use case.

I have not worked out a solution to this, but I found this post that might help you.

https://community.atlassian.com/t5/Jira-Service-Management/Can-Jira-select-a-random-sample-of-issues-for-QA/qaq-p/1419911

Using the information there you would "tag" your randomly selected issues, then use a Branch/Related Issues/JQL component to select the tagged issues, then in the branch Clone the issues and remove the "tag" you had added.

Tiago Leite November 27, 2022

Sure!

An assignee completes around 200 tickets per week and, from those, I want to select 7 tickets for QA. Not specific tickets, just a random sample of 7 tickets closed on that week.

The only "filter" I can't find a way to work with is the selection of exactly 7 tickets per assignee, the remaining filters and actions work just fine (type of ticket, field conditions, etc)... But I don't know any trigger for the specific selection of 7 tickets per assignee. 

The post you sent me works based on a percentage, which doesn't work for us (the total number of total tickets completed varies too much).

Thank you for your help on this, again! :) 

Suggest an answer

Log in or Sign up to answer