Using JIRA Service Management and JIRA Cloud
We have a service where customers are limited to X number of In Progress requests at once - depending on their subscription level.
I need a custom field visible on each Request, that shows how many Issues that Organization has Open that match the category "In Progress".
How would I write a script to do this?