Unable to Link GitHub Pull Request to Azure DevOps Work Item – "The Pull Request URL cannot be resolved"

Thiago Pereira da Silva 40 Reputation points
2025-07-02T18:12:27.5166667+00:00

I'm experiencing an issue when trying to link a GitHub Pull Request to a work item in Azure DevOps. Every time I attempt to link the PR using its URL, I get the following error message: "The Pull Request URL cannot be resolved. Please check the URL and try again."

azuredevops

Here are some details about my setup:

  • I am Owner of the GitHub organization.
  • I am a Project Administrator in Azure DevOps.
  • My Azure DevOps account is on the Basic access level.
  • I have full access to the repositories.

In Azure DevOps, under Project Settings > GitHub connections, I’ve created the connection and explicitly added the necessary repositories.

On the GitHub side, under the organization settings, I went to GitHub Apps > Azure Boards > Configure, and set Repository Access to All repositories.

I've double-checked that the PR URLs are valid and correctly formatted (e.g. https://github.com/org-name/repo-name/pull/123).

Any idea what might be causing this? Is there something else I need to configure or reset to allow the PRs to be resolved correctly?

Azure DevOps
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Durga Reshma Malthi 6,205 Reputation points Microsoft External Staff Moderator
    2025-07-03T08:41:12.22+00:00

    Hi Thiago Pereira da Silva

    Could you please check the following things:

    1. Go to your GitHub org -> Settings -> GitHub Apps -> Azure Boards -> Re-Configure Check that your target repository is listed. Switch to Only select repositories, save, then switch back to All repositories as this can refresh the app’s permissions.
    2. If the repository is private, make sure the Azure Boards GitHub App has access.
    3. Go to Azure DevOps -> Select your Project -> Project Settings -> Service connections -> Ensure a GitHub connection exists and is authorized.
    4. Make sure your Azure DevOps identity email matches the GitHub user email. You must be a member of the GitHub org, and your GitHub email must be public or verified.
    5. Paste the PR URL in the browser to confirm and also ensure that PR is in active state or merged and it is not from forked repo.

    Hope this helps!

    Please Let me know if you have any queries.

    0 comments No comments

  2. Thiago Pereira da Silva 40 Reputation points
    2025-07-03T18:10:58.84+00:00

    I found the issue, it turns out that during the migration from Azure DevOps to GitHub, some users weren’t mapped correctly. The error only occurs on pull requests that include participants who weren’t properly mapped during the migration.

    I couldn’t find a way to fix the issue with those PRs, since I can’t remove participants from them. The solution was to create a new PR directly in GitHub.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.