Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to fast track an issue on creation without using scriptrunner builtin script?

I have placed the following code in the Create post-function after the "Issue Created" event is fired:


def IssueService issueService = ComponentAccessor.getIssueService()
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
def actionId = 11

IssueService.TransitionValidationResult transitionValidationResult = issueService.validateTransition(
        user,, actionId,new IssueInputParametersImpl([:])

if(! transitionValidationResult.errorCollection.hasAnyErrors())



However, the validateTransiton call returns the following error.

Errors: {}
Error Messages: [It seems that you have tried to perform a workflow operation (Planned) that is not valid for the current state of this issue (TASKTEST-28). The likely cause is that somebody has changed the issue recently, please look at the issue history for details.]

Note, that all of the conditions and validators are satisfied after the issue is created.

Whereas, the above code works fine if I place it somewhere else like in a IssueUpdated event listener 



2 answers

Hi Thanos, I will give a try to TransitionOptions.The script runner Fast-track transition works fine.


Hi Roberto,

Did you check your logs for any more informative error messages ?

I would suggest to try use TransitionOptions (and skip any validators, conditions etc) during the the transition

Also did you try to use script runner's built in  Fast-track transition an issue and it failed (I see that you mention "without using sr built in script" but if with the built in script does not fail this may give us a clue) ? 

regards, Thanos

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

254 views 0 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you