0

Say I have 2 repos...

And I have a work item (or bug, or whatever) in one repo, and my code in another repo (yes, I know it's silly, that's how my group rolls for historical reasons).

Is there a way to assign a bug from one to the other? So that when I create a PR in Repo1, I can link to a bug in Repo2?

  • Not an Azure user, but in general when the tools setup has limits seek a compromise. I'd open a new item in the correct repo, add a reference to it in the old item (for tracking purposes, maybe copy/link some info over if it makes sense), close the old item (since you say you can't really work on it), then work on the new item instead. – Dan Cornilescu Apr 3 at 2:27
0

Work Items created in Projects, not in Repos.

And yes, you can link to PR also work items from another projects.

  • How would you go about doing that? – Shahar Prish Apr 3 at 15:03
  • Like link any work item in PR, just give the work item ID in the PR page. – Shayki Abramczyk Apr 3 at 16:23
0

There are actually many ways to link work items to other objects in Azure DevOps. Microsoft's documentation is pretty extensive on this topic. However, for the particular task at hand, linking code commits (I'll assume Git is in use for this example), can be done in several different ways.

  1. In your commit message - By including the work item ID in the commit message prefixed with the hash mark # (i.e. #12345), when the commit is pushed to the server, the work item and commit are linked automatically. Then, when this commit is part of a pull request that is created, the linkage is made visible as part of the pull request.

  2. Within the pull request during creation, or afterward when edited by the creator, you can add work items directly to the pull request by searching either by ID or by keywords.

  3. Several other methods can be discovered through editing a work item or right in Visual Studio.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.