Forums

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

Transition status from a Cloned issue in Postfuntion / scriptrunner

Sylvain Reissier June 8, 2020

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

imgjira.PNG

Thanks 

 

1 answer

1 vote
Kristian Walker _Adaptavist_
Community Champion
June 8, 2020

Hi Slyvian,

Thank you for your question.

I can confirm that your screenshot appears to be from ScriptRunner for Jira Server but I can confirm that you have tagged this post as relating to Jira Cloud.

I would advise that you re tag this post for Jira Server so that users familar with the ScriptRunner for Jira Server plugin see this post and can  advise on how to achieve this requirement.

I hope this information helps.

Regards,

Kristian

Sylvain Reissier June 8, 2020

Apologies, our server is hosted on the cloud, I got confused... Thanks for your remark !

Paulo Almeida
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!
November 4, 2021

Where you go. using the new automation from Jira

Status Transiction.jpg

Suggest an answer

Log in or Sign up to answer