Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

A valid validation result which shouldn't be

Fabien Sanchez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 1, 2018

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 ?

0 answers

Suggest an answer

Log in or Sign up to answer