Forums

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

How to write a groovy script for skipping one status in workflow

Hema TB November 19, 2018

I need to skip one staus and automatically issue transitioned to next status. Please give me a groovy script to achieve this functionality.

2 answers

1 vote
Carol Jones
Contributor
November 19, 2018

Is there a reason it needs to be in groovy?  If you have ScriptRunner installed, this is one of post function options they provide out of the box:

Fast-track transition an issue
If the condition is met, automatically transition this issue to another status

Tom Lister
Community Champion
November 19, 2018

Hi 

Yep - I've used this to transition and issue to approved once everyone has done their approval action :-)

Like Carol Jones likes this
0 votes
Tom Lister
Community Champion
November 19, 2018

Hi @Hema TB

This post has a relevant example

https://community.atlassian.com/t5/Marketplace-Apps-questions/ScriptRunner-how-to-automatically-transition-an-Epic-to/qaq-p/628780

If you use Jira Misc Workflow Extensions, there is a Transition Issue post function which can be triggered conditionally.

Suggest an answer

Log in or Sign up to answer