Forums

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

How can I write a script to check if there is a user assigned and if yes, jump to a certain status?

Tung Duong October 17, 2019

When i create an issue and assign an assignee before pressing the "create" button, i want to jump into a certain status.

 

Thanks for help. 

1 answer

1 accepted

3 votes
Answer accepted
Leo
Community Champion
October 17, 2019

Hi @Tung Duong

 

You can try out one of the post-functions of scriptrunner (Fast-track transition)

In create transition --> Post-function --> Script Runner post-function --> Fast-track Transition

In Condition : issue.assignee (it'll validate your issue has assignee or not)

ActionID: select the transition ID which you want to execute(NOTE: it should have the transition from the initial state to the state you want jump)

You can skip permissions & validators if you want

 

You should place this post-function after workflow fire-event function, so the order would be

1. create issue originally

2. fire-event

3. fast-track transtion

 

BR,

Leo

Tung Duong October 17, 2019

Thanks alot it worked like a charm.

Leo
Community Champion
October 17, 2019

cool (y) 

Patrick Heupel
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!
October 17, 2019

thank you, works also for me ( * )Y( * )

Suggest an answer

Log in or Sign up to answer