microsoft / azure-devops-extension-sdk

Client SDK for developing Azure DevOps extensions
MIT License
122 stars 38 forks source link

Unable to determine the board type in SDK.register instance context #59

Open ganeshborle opened 1 year ago

ganeshborle commented 1 year ago

In our project, we are adding one context menu item and respective actions against it. I just learned that, when we show this context menu(right click), the context which gets passed is actually different and there is no way to determine from where it has been invoked. For example, if we are in "Sprint Board" the context which I get has the workitem id as "id" if we are in "Detailed View" (dialog view of any clicked item from Sprint board), we get workitem Id as "workItemId" If we are in "Backlog View", we get workitem Id as array "workItemIds:[]"

Is there any we can determine the board/view, from where it is being called?

ganeshborle commented 1 year ago

Can someone please have a look here?

khertwork commented 1 year ago

@ganeshborle are you implementing an extension same as this one Click Me ?

if so, can you share the code ?