Condition scripting String List Type issues
![]()
EDIT: It seems that the reason causing this was the differences between the JavaScript engine on the browser and the JavaScript engine running on the eclipse client and the ccm server.
Hello, I am trying to write a condition script that will make a String List required when a checkbox in an Enum list is selected. For example, the user selects "ticket reported by external customers" checkbox in the Customer issues attribute Enum List. When this box is selected it will cause the Attribute "Customer names", which is of type String List, to become required, and will require that at least one string is inside of the string list. Currently in the web UI, when I select "ticket reported by customer", the red asterisk appears next to the "Customer names" attribute, however I am allowed to save the defect with no values in the string list. I have other condition scripts running so I am pretty sure that the condition script is set up properly. I also notice that in the eclipse client, the red asterisk for required does not appear for the field "customer Names" when I select "ticket reported by external customers" like it does in the web UI. I have added the "customer names" into the Required Attributes for type and state for testing purposes and when there are no values in the string list the server throws an error "Attribute 'Customer Names' not set. the 'Customer names' attribute needs to be set (work item 100)." so I know that there is a way for the server to check if requirement based off of the values inside the string list. Is it currently not possible to make a string list a required field using condition scripting, or am I missing something. Thank you very much. |
Accepted answer
One other answer
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Jun 02 '15, 3:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Conditions don't prevent from saving if
JavaScript has issues with List types, I think you should get a string. Not sure.
|
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.