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.ComponentAccessordef issueService = ComponentAccessor.getIssueService()
IssueService.TransitionValidationResult validationResult = issueService.validateTransition(currentUser, issue.id, 181 as Integer, issueInputParameters)
But nothings happens
Thanks
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
Apologies, our server is hosted on the cloud, I got confused... Thanks for your remark !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where you go. using the new automation from Jira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.