Calculated value script using checkboxes values
Hello !
I need to get the enumeration values with checkboxes. I need to get all the values that are checked, but the code below does not work, because returns null.
var complexidade = workItem.getValue("criteriosPriorizacao");
The xml is as follows :
<enumeration attributeTypeId="criteriosPriorizacao" name="Critérios de Priorização">
How do I get the checkboxes that are checked?
Thanks!
|
Accepted answer
Millard Ellingsworth (2.5k●1●24●31)
| answered Oct 25 '13, 9:26 p.m.
FORUM ADMINISTRATOR / JAZZ DEVELOPER
This article: https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript indicates that there is limited support for working with enumerations via the JavaScript API. Further down in that article there is a section on working with enumerations: https://jazz.net/wiki/bin/view/Main/AttributeCustomization#WorkingWithEnums
I'm not certain, but the name on that second one may be problematic: "name="<span style=" line-height:="" 1.5;"="">CheckBox 2"/>"
Tayane Fernandes selected this answer as the correct answer
Comments
Tayane Fernandes
commented Oct 28 '13, 6:52 a.m.
Thank you!
The xml is correct in my code, must have been some mistake when I pasted it here.
The problem I'm having with the checkbox is like this question: https://jazz.net/forum/questions/119517/attribute-customization-can-a-calculated-value-use-the-contents-of-checkbox-enumeration-list-without-a-save-using-js?page=1&focusedAnswerId=131779#131779
I just finished up an article that may help: https://jazz.net/library/article/1360 |
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.