It's all about the answers!

Ask a question

Dynamically changing the Manadatory fields in work item


babu vijay prasad kamineni (7623016) | asked Mar 19 '10, 7:17 a.m.
Hi all,
I have a dropdown list. If I select a value from that dropdown, depending on that a text box should become mandatory.
And there is date field (close date). This filed has to become mandatory when status of the work item is changed Closed.
Is this possible in RTC 2.0.0.2? Please provide me with the link.

9 answers



permanent link
sam detweiler (12.5k6195201) | answered May 02 '12, 11:51 p.m.
this may be easier than I thought.

the Dynamic Required Properties Advisor can do this easily for single enums.

you create a javascript 'rule' for each entry in the enum, the rule returns true if that value is selected.

then in the config for the Dynamic Required Properties, you select the rule, then you get to select which properties are required for that rule.

permanent link
sam detweiler (12.5k6195201) | answered May 01 '12, 10:36 a.m.
just to clarify..

I want to present a UI for the admin to pick which Enums should be used to control the required fields..

so, I get all the attributes for the project area, verify they are in the workitem being configured (defect, story, custom, whatever),
then find the enum types..

this part is not clear.. as my custom workitem attribute is not listed as an enum type altho the presentation says it is.

processing for variable=Feature attrib type=com.ca.workitem.enum.feature
attribute name=com.ca.workitem.type.feature, type=com.ca.workitem.enum.featureli
teral=com.ca.workitem.enum.feature.literal.l8 literal name=Unassigned

so, I attempt to 'resolveEnumerations' against that attribute,
and get an assert exception when the data is not an enum based variable..

is that the right way? I don't see another mechanism to tell me which variables are enum based..

permanent link
sam detweiler (12.5k6195201) | answered Apr 30 '12, 3:43 p.m.
Help..

as I try to write this plugin, I need the IWorkItemCommon class to resolve the enumeration and get its literals..

I can't find a way to get this from the runtime of the OperationAdvisor..

Any suggestions?


found this topic

https://jazz.net/forums/viewtopic.php?t=11468&highlight=iworkitemcommon

net: use deprecated method

permanent link
sam detweiler (12.5k6195201) | answered Apr 30 '12, 10:41 a.m.
Help..

as I try to write this plugin, I need the IWorkItemCommon class to resolve the enumeration and get its literals..

I can't find a way to get this from the runtime of the OperationAdvisor..

Any suggestions?

permanent link
sam detweiler (12.5k6195201) | answered Apr 20 '12, 9:46 p.m.
I am interested in this feature too.. I will have to check 4.0rc to see what is available


I don't see this function in 4.0 rc0.

specifically..

when a enumeration value is selected, a defined set of fields are required. if another enumeration value is picked.. a DIFFERENT set of fields is required..

I might write that plugin..

sam

permanent link
sam detweiler (12.5k6195201) | answered Apr 20 '12, 5:12 p.m.
I am interested in this feature too.. I will have to check 4.0rc to see what is available

permanent link
Patrick Streule (4.9k21) | answered Mar 26 '10, 5:27 a.m.
JAZZ DEVELOPER
I have a dropdown list. If I select a value from that dropdown,
depending on that a text box should become mandatory.

Currently, we don't support this level of dynamic requiredness of
attributes. This enhancement will be part of

https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/100191

--
Regards,
Patrick
Jazz Work Item Team

permanent link
babu vijay prasad kamineni (7623016) | answered Mar 26 '10, 3:04 a.m.
Thank you Patrick.
Can you help me in this one also.
I have a dropdown list(Enumeration). If I select a value from that dropdown,
depending on that a text box should become mandatory.

permanent link
Patrick Streule (4.9k21) | answered Mar 22 '10, 9:50 a.m.
JAZZ DEVELOPER
Hi all,
I have a dropdown list. If I select a value from that dropdown,
depending on that a text box should become mandatory.
And there is date field (close date). This filed has to become
mandatory when status of the work item is changed Closed.
Is this possible in RTC 2.0.0.2? Please provide me with the link.

You can configure state dependent required attributes in the Process
Configuration editor:
http://dl.dropbox.com/u/2663305/ScreenShots/2010-03-16_1054.png

--
Regards,
Patrick
Jazz Work Item Team

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.