So I wrote a scripted condition to prohibit a particular workflow transition if the assignee has not commented on it. ( I check for a particular value in a custom field, and if the test is true, I look at the list of comments and check that the getAuthor of the last one equals the issue.Assignee.)
It works well enough, but the problem is, when the transition is prohibited, of course, you don't see it in the list. So, if you go to open the Conditions Validator to see why the transition doesn't show, then the system throws a NullPointer exception, because there is no getHtml method to fill it in.
Here is the actual message that comes back:
Error rendering WebPanel (viewissue/activityblock.vm): org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.intenso.jira.plugins.condval.issuetabpanel.ConditionsValidatorAction threw exception java.lang.NullPointerException at viewissue/activityblock.vm[line 50, column 23]
So we need this method for Jira to call, and some way to fill it in with the relevant stuff for the Conditions Validator. Is that already in the package and I missed it?
OK, more information: I upgraded the Intenso conditions validator to version 2.0.5, same as what we have in the production instance, and the problem still appears anytime you open the conditions validator in the step where this scripted condition appears. Doesn't matter if the script is returning "true" or "false" either, of course.
Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...
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