How to read string to text field from enumaration using calculated value in RTC
Hi Team, RTC version 6.0.2 and using calculated Value. I want to read string to small string field from enumeration based on user selection. For example, if I selected value in enumeration as [aaaaaaa bbbbbbbb ccccccccc] and I should only read "aaaaaaa" from enumeration to small string field. I was able to read entire value([aaaaaaa bbbbbbbb ccccccccc]) using getLabel() but I am unable to read string position. Something wrong with my code, can you please help here. Here is my code.
dojo.provide("com.example.programid");
(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
var ppmoprj;
ppmoprj = workItem.getLabel("com.attribute.ppmoprj");
|
2 answers
I'm not sure why you would get a list instead of a plain string when reading the label of an Enumeration attribute. Are you really sure it's Enumeration, not Enumeration List?
|
Ralph Schoon (63.4k●3●36●46)
| answered Jan 11 '18, 7:21 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I think one can learn a lot from this post and the duplicate posts that I think I have seen before.
|
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.