It's all about the answers!

Ask a question

Is there a way to restrict workflow states based on an enumeration?


Michael Alberda (2311648) | asked Mar 22 '18, 9:01 a.m.

Hi,

Is there an easy way to restrict workflow states based on what is selected in an enumeration?  For instance if "A" is selected, I only want users to see the states assigned for that literal. Similarly if "B" is selected, it will show additional states that are not visible when "A" is selected"

This is similar to what we use value sets for, however, I need it to be applied to states.

I would really like to avoid plugins if possible.

Thanks,
Regards,
Michael.

2 answers



permanent link
Ralph Schoon (63.3k33646) | answered Mar 22 '18, 9:45 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

permanent link
Donald Nong (14.5k614) | answered Mar 22 '18, 11:05 p.m.

Maybe you can make it work the other way? Say, create a validator to make the enumeration invalid for certain states? That way, even though you cannot hide the states, you can at least prevent users from transit the work items into such states.


Comments
Ralph Schoon commented Mar 23 '18, 3:48 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

It is possible to use pre-conditions/advisors or validators to prevent a state change that violates a rule implements. It is not possible to hide certain actions of a workflow based on some condition, however.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.