We use Jira Automation's built-in Assign Issue action, and have it configured to round-robin assign out to members of a specific group, which works great.
Sometimes we get into high-volume scenarios, and the team is asking about ways to limit the amount of issues that get assigned at a time. For example, only assigning 5, regardless of how many are in Unassigned and waiting. Next time, 5 more.
I'm hitting a wall in finding a creative way to do this. I can't find any way to limit a JQL result—our normal assign automation uses the JQL filter for further action steps, but with no way to limit the results, I don't see how this is possible.
I can use a Web Request to query the full JQL via the API, and use that to limit the results, and get back a limited list of issues: {{webResponse.body.issues.key}}
But—how do I assign those issues round-robin? The Assign Issue action doesn't seem to take any input, so I can't direct issues into it. Maybe I could use the API to assign instead, but then I can't do round-robin.
I suppose I could use the API approach to get limited results and then do another API-based bulk edit, like add a label which another automation can pick up on to then do round-robin assignment, but that feels so overly complicated. Am I missing something?