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.
It started as any story starts, on a normal, rainy day. Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...
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