Thanks!!!!! Man google was NO help on this one. Can't believe it hadn't been documented before anywhere.
Is there a primary reference for Groovy script methods? I found one page but it was really hard to search and navigate so I wasn't able to drill down to anything related to category.
It's not really Groovy doing this. The "def" bit is Groovy, letting you create an untyped variable to work with later, but the rest is Java calls into the JIRA AP.
If you go to https://docs.atlassian.com/jira/server/ you'll see the java documentation for JIRA's API.
In the code, you've got an "issue" object, so go find the class for "issue" in the "all classes" panel and click on that. The detail panel will show you the available methods and what they return. So getStatus() returns a Status object, so you click on that to see that object and then you'll see the getStatusCategory() call fetches a statusCategory and that has the three get methods I suggested trying!
I suspect Google was less help than usual because the getStatusCategory call is relatively new and may not have been widely posted yet.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Any other country that celebrates Midsummer holiday (this friday 22 June)?
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs