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");
dojo.require("dojo.date.stamp");
(function() {
dojo.declare("example.calculated.AnalysisLogProvider", null, {
getValue: function(attribute, workItem, configuration) {
var sAnalysis = workItem.getValue(WorkItemAttributes.Analysis) + "\n";
var sAnalysis_Log = workItem.getValue(WorkItemAttributes.Analysis_Log) + "\n";
var sDate = dojo.date.stamp.toISOString(Date.now(), {milliseconds:true, zulu:true}) + "\n";
return sDate + sAnalysis + sAnalysis_Log;
}
}
});
})();
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
One other answer
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
Comments
Georgie Mitchell
Oct 25 '16, 2:17 a.m.This is not an Answer, but a further example of where we need this functionality.
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 25 '16, 2:22 a.m.I would suggest to open an enhancement request here: https://www.ibm.com/developerworks/rfe/