Previously, I have an issue when trying to move to resolved status and the fixed versión was not set, it should show a message asking to complete fix versión.
Now, I am trying the other way around: having the fixed versión complete and trying to move to resolve status.
It is supposed that I shouldn't have any issues, but when I click on Resolve button it shows me the following message:
An unknown exception occured executing Validator com.atlassian.jira.workflow.SkippableValidator@17eedcdc: root cause: java.lang.NullPointerException
The code that I have in the Validator in the transition is:
import java.util.Collection;
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.project.version.Version;
import com.opensymphony.workflow.InvalidInputException;
//Collect<Version> fixVersions = $issue.getFixVersions();
if (! $issue.fixVersions) {
throw new InvalidInputException("Fix Version/s is required");
}
What am I doing wrong? why is it showing that message? could you please help me?
Thanks in advance
Ro