Hi everyone,
I am using a postfunction to create an issue in a different project, and I want to transition it further down its workflow :
I managed easily to create the issue in the different project thanks to the scriptrunner "Clone" function, but I cannot find how to transition this clone to the status I want.
I assume I can set it up in the code box circled 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()
//def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
IssueService.TransitionValidationResult validationResult = issueService.validateTransition(currentUser, issue.id, 181 as Integer, issueInputParameters)
But nothings happens
