It's all about the answers!

Ask a question

Calculated value is not working in the production server project area ?


vinitha dsouza (14723136) | asked Apr 24 '19, 1:22 a.m.
edited Apr 24 '19, 1:53 a.m.
Hello Team
Use Case :
We have written a calculate value script and then configured to the story workitem as wiki type
On clicking on that wiki link in the work item a new dashboard page will open.

Script:
dojo.provide("com.PdcWidgetScript");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {

var WorkItemAttributes = com.ibm.team.workitem.api.common.WorkItemAttributes;
dojo.declare("com.PdcWidgetScript", null, {
getValue: function(attribute, workItem, configuration) {
var workitemId = workItem.getValue(WorkItemAttributes.ID);
         if(workitemId == "-1")
return "";
else {
var hardcode = '{{<server path>/ccm/web/projects/Components#action=com.ibm.team.dashboard.viewDashboard&tab=_10&story_id=';
var finalString = hardcode + workitemId + ' | Fill PDC }}';
return finalString;
}
}
});
})();

Problem :
Above feature is working fine in Test server but the same is not working in production
In production server in few work items wiki link is visible and in few work items wiki link(Fill PDC) is not visible

Please find the attachment for wiki link
Any hints why we have this problem ?

Thank you

Be the first one to answer this question!


Register or 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.