I'm using this :
def validationResult = issueService.validateTransition(applicationUser, parentIssue.id, transition_id, new IssueInputParametersImpl())
in a subtask validator, that give me true when i do :
return validationResult.isValid()but it shouldn't ! Since the parentIssue have a validator on this transition that isn't valid.
parent validator is :
if (issue.getIssueType().getName() == "Feature request")
{
return issue.getComponents().size() > 0
}
else
{
return true
}
even if i just return false in the parent validator the child can validate the parent transition.
Why validateTransition didn't check validator ?
How can i use validator in cascade ?