Hi everyone,
I want to create an issue in a different project while transitioning my workflow : Project A - issue 1 - Transition x ->Project B - issue 2 - Status Y
I managed easily to create the issue in the different project thanks to the scriptrunner "Clone" function, but I cannot find how to transition it to the status I want
I assume I can set it up in the code box in the image attached.
I tried
import com.atlassian.jira.bc.issue.IssueService
import com.atlassian.jira.issue.IssueInputParameters
import com.atlassian.jira.component.ComponentAccessor
def issueService = ComponentAccessor.getIssueService()
IssueService.TransitionValidationResult validationResult = issueService.validateTransition(currentUser, issue.id, 181 as Integer, issueInputParameters)
But nothings happens

Thanks