Custom workflow states

agouaux March 7, 2012

I've been asked to augment a custom workflow. Currently, when the "Suspend Issue" transition is selected, the issue goes into the state "Waiting for Customer". However, they would like 3 different destination states to be possible. So, if "Suspend Issue" is selected, the resulting transition state can be one of the following:

* Waiting for Customer

* Waiting for Vendor

* Waiting for Resources

Not sure if I can do that, however. Is it possible to have a screen associated with this "Suspend Issue" transition whereby the issue state can be selected from a list. Or must I create a transition for each of these destionation states.

Transition State

Wait for Customer --> Waiting for Customer

Wait for Vendor --> Waiting for Vendor

Wait for Resource --> Waiting for Resource

Or, should "Suspend Issue" simply result in one state, "Suspended". Then have a custom field that says why the issue is suspended? I guess with this approach, would just have to nuke any value in that custom field when the issue transitions to being back in an active working state. If this custom field is shown in the screens for that project, when it's empty, will it still be displayed. (If I remember that with custom fields, the interface will only display them if the screen is configured to show them, and if they currently contain a value.)

Thanks,

Amos

2 answers

0 votes
agouaux March 8, 2012

Sounds like, if there was to only be the single step "Suspend Issue", it might be easier to have a select list custom field that would list the various reasons why the issue is now in a "Suspended" state. Then when transitioning out of that state, this "Waiting for" custom field would have be be reset and cleared of its value since the issue is no longer suspended.

0 votes
Dieter
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.
March 7, 2012
You might be able to transition depending on some select list or radio button custom field which is placed on the transition screen and cotains your destination statses. Use this post function provided by the groovy script runner plugin https://studio.plugins.atlassian.com/wiki/display/GRV/Built-In+Scripts#Built-InScripts-Fasttracktransitionanissue The condition of the fast track post function just contains a check for the status. You would need to add one fast track post function per status in your Suspend Issue transition
agouaux March 8, 2012

Sounds like, if there was to only be the single step "Suspend Issue", it might be easier to have a select list custom field that would list the various reasons why the issue is now in a "Suspended" state. Then when transitioning out of that state, this "Waiting for" custom field would have be be reset and cleared of its value since the issue is no longer suspended.

agouaux March 8, 2012

Sounds like, if there was to only be the single step "Suspend Issue", it might be easier to have a select list custom field that would list the various reasons why the issue is now in a "Suspended" state. Then when transitioning out of that state, this "Waiting for" custom field would have be be reset and cleared of its value since the issue is no longer suspended.

Dieter
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.
March 8, 2012
Hi Arnos, no this soliution would have what you want. it's one transition but with three ways oit into three different steps. You just need to add three fastTracktransition post functions in one transition
Dieter
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.
March 8, 2012
Forget my last comment if it was already sent by mail ;)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events