Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes

Comments

 This is not an Answer, but a further example of where we need this functionality.


On our Epic's we have a number of sections where we need dated, non-editable comments to be recorded, for example; Change Request discussions, notes on Orders of Magnitude or impact on other systems.

Yes, we could date each comment, but users can also edit these field types (html etc).

Has anyone managed to create a custom "Comment" type attribute?

I would suggest to open an enhancement request here: https://www.ibm.com/developerworks/rfe/


Accepted answer

Permanent link
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

0 votes


One other answer

Permanent link
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

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,029

Question asked: Apr 25 '16, 2:54 p.m.

Question was seen: 2,643 times

Last updated: Sep 21 '20, 7:39 a.m.

Confirmation Cancel Confirm