Closed tjhleeds closed 1 month ago
@tjhleeds Implemented in the upcoming version 2024.22.25
If I try to open a PR in AZD I now get this message, which I suspect could be related to this issue.
Failed to load pull requests. HTTP Request Request GET https://dev.azure.com/xxxx/xxxx/_apis/wit/workitems?ids=177190&fields=System.Id,System.TeamProject,System.WorkItemType,System.Title,System.AssignedTo,System.ChangedDate,System.CreatedDate,System.State&api-version=7.2-preview.3 failed with status code 401 and response body:
(That's the end of the message displayed to me, there is no response body displayed.)
Does the plugin now require additional permissions which it didn't previously need?
I've found that it's possible to edit the scope of PAT tokens, which I hadn't realised. I've added read permissions for Work Items and this now works fine.
@tjhleeds thanks for updating
Is your feature request related to a problem? Please describe.
My team's policy is that all pull requests must be linked to at least one work item. It is typically useful to open that work item as part of the review process, to understand the context for the changes and sometimes to check the requirements.
Describe the solution you'd like
I'm not sure where this would fit best, but it would be nice if AZD displayed the list of linked work items, each of which is a link to open the work item in the browser. It's worth noting that this would need to support custom work item types in order to be useful for me, I don't know whether or not that makes the request any more complex.
Describe alternatives you've considered
At the moment I have to open the PR in the browser (using the link which AZD does provide), then open the linked work items from there.
Additional context
None