I wonder where the three status categories come from? Are they hard coded or somewhere saved in the database?
I only find the column “statuscategory” in the “jiraissue” table. There are values like 2, 3 or 4 but I feel bad about to use “4” hard coded in my plugin as that what it is. Isn’t there a way to determine the category “in progress” for example, and the function returns 4? Or are 2,3,4 fix number values all around the world and in all server instances? I can’t believe that.