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

Default Value Provider in RTC

Hello Team,

i am referring to example script used by jazz.net
dojo.provide("com.ibm.team.workitem.defect.DefaultDescriptionProvider");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");

(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
var DEFECT_DESCRIPTION_DEFAULT="\
What steps will reproduce the problem?\n\
1.\n\
2.\n\
3.\n\
\n\
What is the expected output? \n\
\n\
\n\
What do you see instead? Please provide screen shots if possible.\n\
\n\
\n\
Please provide any additional relevant information below (server logs, custom project area template, etc...).\n\
";
    dojo.declare("com.ibm.team.workitem.defect.DefaultDescriptionProvider", null, {
        getDefaultValue: function(attribute, workItem, configuration) {
var type= workItem.getValue(WorkItemAttributes.TYPE);
if (type == "defect") {
return DEFECT_DESCRIPTION_DEFAULT;
}
return workItem.getValue(attribute);
        }
    });
})();


My query is the following:
- Default Value Script is triggered only in Intialise state? not in any other states?

0 votes


Be the first one to answer this question!

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
× 10,938

Question asked: Jan 01 '19, 3:44 a.m.

Question was seen: 1,417 times

Last updated: Jan 01 '19, 3:44 a.m.

Confirmation Cancel Confirm