Skip to content

Enhance Wiki link support with additional attributes and validation#1415

Merged
danhellem merged 1 commit into
mainfrom
users/danhellem/wiki-links-1
Jul 9, 2026
Merged

Enhance Wiki link support with additional attributes and validation#1415
danhellem merged 1 commit into
mainfrom
users/danhellem/wiki-links-1

Conversation

@danhellem

Copy link
Copy Markdown
Collaborator

This pull request adds support for linking Azure DevOps work items to Wiki pages via artifact links. It introduces new parameters for specifying Wiki page information, handles URI construction for Wiki links, and updates tests to cover these scenarios.

Wiki link support:

  • Added new parameters (wikiId, pageId, pagePath) to the wit_add_artifact_link tool for specifying Wiki page information. The handler now resolves the full Wiki page path from either pageId (via API lookup) or pagePath, and constructs the correct vstfs URI for Wiki pages. [1] [2]
  • Introduced the helper function getArtifactLinkAttributeName to ensure the attribute name for Wiki links is set to "Wiki Page" instead of just "Wiki". [1] [2]

Validation and error handling:

  • Added validation to require projectId, wikiId, and either pagePath or pageId for Wiki links, with clear error messages if any are missing.

Testing:

  • Added and updated tests in work-items.test.ts to verify Wiki link creation, including correct URI encoding, attribute naming, and error handling for missing parameters.

GitHub issue number

#1412

Associated Risks

N/A

PR Checklist

  • I have read the contribution guidelines
  • I have read the code of conduct guidelines
  • Title of the pull request is clear and informative.
  • 👌 Code hygiene
  • 🔭 Telemetry added, updated, or N/A
  • 📄 Documentation added, updated, or N/A
  • 🛡️ Automated tests added, or N/A

🧪 How did you test it?

manually tested and updated auto tests

@danhellem danhellem requested a review from a team as a code owner July 9, 2026 14:57
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@danhellem danhellem linked an issue Jul 9, 2026 that may be closed by this pull request
5 tasks
@danhellem danhellem merged commit 7069f31 into main Jul 9, 2026
7 checks passed
@danhellem danhellem deleted the users/danhellem/wiki-links-1 branch July 14, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use "Wiki Page" as attributes.name for Wiki artifact links

2 participants