JavaScript / EWM: Custom Presentation - How to add work item to work item list attribute?
Hello,
We are developing a custom presentation for a work item list attribute. After the user creates a new work item we need to add it to our work item list attribute. Note: This is an attribute of kind work item list. It is not a link.
How do we add a work item to the work item list attribute?
I get the current work item list just fine:
var workItemList = this.workingCopy.getValue( {
path: ["attributes", this.attributeId ],
});
workItemList is set to (for example):
{
_eQualifiedClassName: "com.ibm.team.workitem.rest.dto:ListDTO",
items: (1) [
0: Object { itemId: "_7OqAYCT5EeubHdT_idS2yQ", stateId: "_7PGFTyT5EeubHdT_idS2yQ", _eQualifiedClassName: "com.ibm.team.workitem.rest.dto:WorkItemDTO", … }
],
length: 1,
Regards,
Kevin