It's all about the answers!

Ask a question

I would like to make a field mandatory based on the value selection another field.at a state


yossi horesh (18815) | asked Aug 14 '16, 2:35 a.m.

Hi ,

I would like to make a field mandatory based on the value selection another field.at a state   Can someone tell me how to do this using condition ?

2 answers



permanent link
sam detweiler (12.5k6189201) | answered Aug 14 '16, 9:00 a.m.
well, condition returns true or false. you cannot pass it parameters.. so you have to hard code the test..

once you have condition working, then you can use the condition in the required by condition advisor settings

you have to add the required by condition advisor to the list of active advisors..

Comments
yossi horesh commented Aug 14 '16, 11:59 p.m. | edited Aug 15 '16, 12:02 a.m.


Hi Sam

Thanks for your quick answer.

ok this one way
active advisors  - https://jazz.net/library/article/495


I am looking for a way to do this with operation behavior ( Required Attributes For Condition).
Can I write condition that depend on work item state?


permanent link
Ralph Schoon (61.5k33643) | answered Aug 15 '16, 2:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
https://jazz.net/wiki/bin/view/Main/AttributeCustomization explains the JavaScript (and Java) API and what conditions can access. Conditions can access the workflow action selected as well as the state of a work item. https://rsjazz.wordpress.com/2015/08/07/a-custom-condition-to-make-attributes-required-or-read-only-by-role-version-2/ explains how the UI works with condition and preconditions/operation advisors. Advisors basically prevent saving but don't provide UI hints. Conditions can provide UI hints.

https://jazz.net/library/article/495 is pretty outdated. Start here: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/

Comments
Ralph Schoon commented Aug 15 '16, 2:55 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

And conditions like all JavaScript providers can be configured in the process XML as well.

Your answer


Register or to post your answer.