Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to transition an issue using script post function in Create Transition

I want to transition an issue to a particular status.  This execution is condition based. When an issue of a particular issue type is created, it is in "Open State". I want that if an issue of this particular issue type is created and condition is satisfied, the issue must be transitioned from "Open" to "In Analysis" state. I tried to do it via Script Post function and Script Listener using below code, but it did not work.

def actionId = 281
TransitionOptions skipConditions = new Builder().skipPermissions().skipValidators().skipConditions().build();
transitionValidationResult = issueService.validateTransition(technicalUser,, actionId,new IssueInputParametersImpl(),skipConditions)
if (transitionValidationResult.isValid()) {
transitionResult = issueService.transition(technicalUser, transitionValidationResult)

Any help would be appreciated.

1 answer

1 vote

No, you can't execute another transition while there is one in progress.  Not with that approach anyway, your code needs to be a lot more clever than that, otherwise you end up in a situation where an issue has two status and no way of knowing which one it should be landing in.

Scriptrunner has a function that handles it right though.  Have a look at "fast track transitions" under

Hello Nic Brough,

Thank you for the response.

I am aware that the "Fast-track transition feature" can be used but I cannot use it for this requirement because, the transition has to be performed by a different user and not the current user and we do not have a provision to set user here.

Hence, could you kindly let me know how to achieve this.

You could try it as a listener - catch the create event, interrogate the data in the event and trigger a second transition.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,047 views 8 28
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