Scripting custom attributes
![]()
I am looking to get the value of a custom attribute in an script
dojo.provide("com.swm.chargeDomaine"); dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes"); (function() { var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes; dojo.declare("com.swm.chargeDomaine", null, { getValue: function(attributeId, workItem, configuration) { console.log("custom Value : "+workItem.getLabel(WorkItemAttributes.???????)+" = "+workItem.getValue(WorkItemAttributes.?????)); } }); })(); |
One answer
![]()
Unfortunately, the list of possible attributes is fixed.
https://jazz.net/wiki/bin/view/Main/AttributeCustomization Use extension to set value for custom attributes. It is actually so easy to create plug-in than people can imagine. https://jazz.net/wiki/bin/view/Main/RTCSDK20_ProcessPreConditionExample |
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.