Associate Work Items to a Pull Request Programmatically
<p>I can get (<a href="https://www.visualstudio.com/en-us/docs/integrate/api/git/pull-requests#get-a-pull-request" rel="nofollow">https://www.visualstudio.com/en-us/docs/integrate/api/git/pull-requests#get-a-pull-request</a>) a pull request, manage reviewers and complete it. The branch has a policy requiring work items and it fails as the pull request does not automatically add the work items associated with the underlying commits.</p>

<p>Poking at the PATCH against the pull request with bad parameters nets a </p>

<blockquote>
  <p>"You can only update reviewers, descriptions, titles, merge status,
  and status"</p>
</blockquote>

<p>I can get a list of work items using the pull requests url + /workitems but POST, PUT and PATCH all are not supported on the collection.</p>

<p>I do not see a way to associate a work item with the pull request?</p>