Hi there,
I am wondering if there is any way to solve the following problem:
We are using Jira Software to manage the workload in our team. We're not working on actual software, but doing things like data analysis for our customers. We have a lot of different, very specific ticket types and workflows.
Certain analysis tasks require us to use a system residing at our customer's site. This system is built in a way that it uses 4 different "queues" to process our requests. If we now go ahead and put multiple requests in one queue, the system will mix up the results in this queue and we cannot separate the requests in the result set any more, which is necessary for us. Bottom line here is: We can only put one request in one queue at a time. It's a real drag, but we unfortunately can't change this system and its architecture.
Now because we're using Jira, we've added a custom field "Queue" to the issue type that is associated with this kind of task. It is used to track which issue / request is processed in which queue at the moment. The assignee has to choose a value Queue 1-4 and put the Jira-Ticket to status "Running in Queue". After that he starts the request in the customer system in the chosen queue.
What we wanna do now is inhibiting users of choosing a queue (in Jira) that someone else has already chosen to mitigate the risk of clashing requests. Right now we think of programming a Validator for the transition to Status "Running in Queue". We are thinking of a Groovy script via Adaptivist ScriptRunner that checks the value of "Queue" in all other issues in the status "Running in Queue" and inhibits the transition, if this value is already chosen in another ticket.
TL/DR
So our question is: Can we assess the value of the custom field "Queue" in all other issues, that are in status "Running in Queue" at the moment (should be max 4) and inhibit a transition, if the chosen value of "Queue" is already chosen in another issue?
I guess it's a rather unusual and complex problem, so thanks a lot for reading through this. Looking forward to your tips and tricks 