When using a kanban board you are allowed to set a maximum number of issues for each stage. However the users are not prevented from adding more issues if that limit exceeds. Instead it will just make the column for that stage red. Besides if you filter only certain issues that "coloring" rule won't apply as it seems it is a binding rule on the UI only. I am looking for a solution to prevent the users from moving the issues when the limit is already reached.
I see there is a kanban workflow rule that prevents the card being moved if its kanban state is not "ready to pull". I wanted to create a custom rules based on that but I don't know how to check the stage issue count. Is there a way getting that? Is there a way of getting the configured limit for each stage that I was mentioning above so I won't hardcode it in the rule?