Can I have more than one comments type attributes (custom) in RTC work item
Hello All, I want to log a few multi-line attributes. Can I have more than one comments type attributes in RTC defect work item? If yes, how Can I do it. There is no Comments attribute type available in the drop-down list when I add a new attribute. If no, is there any other way to log an attribute? I could not find a way to get the attribute previous (original) value in Calculated Valuess script. My script like this:
dojo.provide("example.calculated.AnalysisLogProvider");
(function() {
getValue: function(attribute, workItem, configuration) {
workItem.getValue(WorkItemAttributes.Analysis_Log) alway get the current value. That means it will comtains some repetition of the value entered in Analysis becuase the script continuously executed. Thanks. Jay |
Accepted answer
Ralph Schoon (63.6k●3●36●46)
| answered Oct 25 '16, 2:07 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Oct 25 '16, 2:08 a.m.
No, the comments "attribute" is not really an attribute and you can not have more than the one. The presentation is also not attribute based and if you add it multiple times, it will only show the same content in different places.
Ralph Schoon selected this answer as the correct answer
|
One other answer
Not sure why you need a new Comment type attribute for this purpose. You don't even need to use multi-line if you use a delimiter other than "\n". You can probably just use a "Large String", or "String List". You can store the value history like this
20160101: value1 | 20160203: value2 | 20160305: value3 unless the value is extremely long to start with, or the attribute is modified very frequently, the above two attribute types should serve you well. https://jazz.net/forum/questions/57611/rtc-text-field-questions-qampa https://jazz.net/library/article/1003 |
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.
Comments
This is not an Answer, but a further example of where we need this functionality.
I would suggest to open an enhancement request here: https://www.ibm.com/developerworks/rfe/