Well, the stuff you do with $issue is basically calling the java api behind it - have a look at the api docs for the relevant version of Jira.
Also, if a .vm is not behaving, it can be useful to use simple brute force. What does $issue show? Or $issue.getStatusObject() ?
If all you get is $issue, then the $issue velocity variable doesn't have an issue in it. There's no way any code is going to work - there's nothing to do!
You need to have a $issue to work with.
(Although, I just noticed you've said "$ issue", not "$issue" - make sure you are using $issue)
In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to have–in order to produce a reliable long-term roadmap. We're tur...
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