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?
Hi @Michael Labrecque-Jessen -- Welcome to the Atlassian Community!
As Mikael described, there is no built-in way to do this. I looked and did not find an open suggestion for this feature in the public backlog, so you may want to add one.
In the meantime...
A possible, convoluted workaround which I have not tried is this:
This approach might have latency issues with the time to remove / add the user with the group, so please test if you want to try this one.
Kind regards,
Bill
Interesting idea. For now, rather than my main automation assigning the tickets, it applies a label, which another automation is looking for, and that one can use the native Assign Issue action. Feels very roundabout!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to Atlassian Community!
There is no option to limit the returned result from your JQL, one option besides the API calls would be to create a version of dynamic looping as described in this article. Instead of using the value from the issue you could have a smart value that sets it, that way you could go in and modify that if you need to change how many issues should be assigned at the time.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.