How to read the attributes of WorkItem A in WorkItem B
Hallo everyone,
I will be very happy to get your support.
|
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Oct 09, 4:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER It would be beneficial if you provided code, if you had one.
Comments
Mohammad Ramzan
commented Oct 09, 5:29 a.m.
Hallo Ralph,
We are using Eclipse Client for CCM customized function purpose.
dojo.provide("test_riskMatrix_Calculation");
(function() {
dojo.declare("test_riskMatrix_Calculation", null, {
getValue: function(attribute, workItem, configuration) {
var imp1_lik1_str = workItem.getLabel("RiskMatrix_List_Imp1_Lik1");
return imp1_lik1_str;
}
});
})();
Here, attribute "RiskMatrix_List_Imp1_Lik1" is part of different workItem defined in the same project.
Thank you.
Mohammad Ramzan
commented Oct 09, 5:31 a.m.
Hallo Ralph,
We are using Eclipse Client for CCM customized function purpose.
dojo.provide("test_riskMatrix_Calculation");
(function() {
dojo.declare("test_riskMatrix_Calculation", null, {
getValue: function(attribute, workItem, configuration) {
var imp1_lik1_str = workItem.getLabel("RiskMatrix_List_Imp1_Lik1");
return imp1_lik1_str;
}
});
})();
Here, attribute "RiskMatrix_List_Imp1_Lik1" is part of different workItem defined in the same project.
1
Davyd Norris
commented Oct 09, 8:06 a.m.
The workitem parameter is the current workitem that you're working on, so that would be workitem A. That's why you are not seeing any information
You need some way to navigate to workitem B from A in order to then get its attributes
You need some way to navigate to workitem B from A in order to then get its attributes As far as I know that is officially not supported. There might be internal APIs like the proxy, that you could use, but that is undocumented and unsupported. |
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.