Forums

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

WorkFlow Transition

argoarchery
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!
January 9, 2020

I am currently creating a workflow for a new project and I run into road block.

Is it possible to have a transition that will have a screen with a yes/no radio button that when a user selects yes the issue is move to a different "status" and if a user answers no the issues is moved to a total different "status".

I have seen in help area where it is possible to move to one different status base on a select option, but not two.

Any help would be greatly appreciated.

 

3 answers

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 9, 2020

No, that's not possible, even with SR.

A transition has a single end-point, it is always going to land in one place. 

You have a couple of options.

  • With conditions:
    • Create transition from status 1 to status 2, with a condition that says "only if button = yes"
    • Create transition from status 2 to status 3, with a condition that says "only if button = no"
  • Fast-track
    • Create transition from status 1 to status 2, with your screen
    • Create transition from status 2 to status 3
    • Set up a "fast track transition" that triggers the move from 2 to 3, with a condition of "only if button = no"

Note the downsides:

  • The condition option does not ask for the field, it works off the current value of it
  • The fast-track writes both transitions into the history
argoarchery
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!
January 10, 2020

Nic,

I have setup the two transition with the idea of using a condition and a screen set on one of the transition with a yes/no radio button. Which is pretty much what I am looking for.

The road block I have run into is setting the condition which would send the issue to other status if the user selects the option of no.

Could you provide insight on which condition to use if the user select the "no" option?

I have watch many youtube video's but none of them cover this type of scenario.

0 votes
Gezim Shehu [Communardo]
Community Champion
January 9, 2020

Hi,

 

I guess you could use 2 fast-track transition post functions on the current transition. I'm mentioning this, since you have tagged this with scriptrunner.

So let's say you start from Status A.

You have a transition from Status A to a Temporary Status. This transition contains 2 fast-track transition post-functions, each checking if the value of the custom field is "Yes" or "No" accordingly.

From Temporary Status you would have 2 transitions, one to each target status you'd like.

 

Cheers

0 votes
Ansar Rezaei
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 9, 2020

Hi

Each transition head should connected to exactly one specific status, no less no more. 

Could you explain your case and say why you need this, It may be a better solution exists for you?

Suggest an answer

Log in or Sign up to answer