Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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 ?

0 votes



2 answers

Permanent link
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/

0 votes

Comments

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


Permanent link
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..

0 votes

Comments


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?

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,117

Question asked: Aug 14 '16, 2:35 a.m.

Question was seen: 2,004 times

Last updated: Aug 15 '16, 2:55 a.m.

Confirmation Cancel Confirm