Dynamically changing the Manadatory fields in work item
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.
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
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
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
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
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
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..
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..
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.
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.