Improve work item link support.
- Get Work Item by URL: Now
Get-TfsWorkItem
can receive a URL to a work item (in the form ofhttps://dev.azure.com/<org>/<proj>/_apis/wit/workItems/<id>
) as a parameter. This way, APIs that return URLs to work items (such as work item links) can be easily "rehydrated" by simply supplying the returned URL toGet-TfsWorkItem
. - Add filter by well-known link types (8a487b9): Now
Get-TfsWorkItemLink
has a LinkType argument, to retrieve only the links of the specified type. - Add format to WorkItemRelation (4b10ae4): Objects of type WorkItemRelation are now properly formatted when outputted - added to support
Get-TfsWorkItemLink
.
- Fix bug in parameter override logic (fdba69a)
- Fix StructureGroup value in New-TfsIteration (f18609e)
The pipeline input parameter for Get-TfsWorkItem
has changed from Project to WorkItem. Scripts that rely on piping projects to Get-TfsWorkItem
will stop working.
This change was made to better support scenarios such as retrieving the work items referenced by the links returned by Get-TfsWorkItemLink
. A typical usage would be:
# Gets the parent of work item #123
Get-TfsWorkItemLink -WorkItem 123 -LinkType Parent | Get-TfsWorkItem