I have built an incomplete extension for TFS Webaccess 2013 in javascript. I want to modify combobox input based on linked work item types. For instance - User Story 555 is currently in active state, and I would like to prevent users from changing to a closed state by greying out the option in the combobox IF a linked child element is still active. I can grey out the item, but I cannot figure out how to get the state of the linked child workitem.
I'm able to say the following in javascript to get the ID of the first linked workitem:
var itemID = workitem.allLinks[0].linkData.ID;
I'm calling this within the bind() function, where workitem is passed as a parameter. I need the ability to grab the state of the child workitem, but have been unsuccessful so far. Please help.
First of all, please use
instead of allLinks since all links may include removed links as well.
Then you can access a work item by id using following async call: