cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
revslaughter
Level: Power Up

Visual studio online: link to work item

Hello! I'm trying to create task work items in Visual Studio online when an end user creates new rows in a Smartsheet so that I can link their requests to my developers and better manage their work.

 

I'd like to link the work items automatically in Flow to a master work item assigned to me so that I can dole out work and prepare detailed work items for my team.

 

I'm running into a problem in the Create New Work Item step. In the 'Link URL' field I'm getting an error response:

{
  "$id": "1",
  "innerException": null,
  "message": "Linking to a work item requires the full url.",
  "typeName": "Microsoft.VisualStudio.Services.Common.VssPropertyValidationException, Microsoft.VisualStudio.Services.Common, Version=14.0.0.0, Culture=neutral, PublicKeyToken=XXXXXXXXXXXX",
  "typeKey": "VssPropertyValidationException",
  "errorCode": 0,
  "eventId": 3000
}

I've tried several different URLs for the work item I'd like to link to: the webservice api, the link it gives me in the work item editor, the workItemUpdates url... they're all 'full urls' that resolve...

 

It's got to be something but I'm really unsure what it could be. Do any of you know what this field could be looking for?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Flow Staff chandbhu
Flow Staff

Re: Visual studio online: link to work item

Hi,

 

When providing 'Link Url'  please follow Visual studio api format to refer to a work item. (workitem url in the vso site doesn't work)

 

https://{instance}[/{collection}[/{team-project}]/_apis[/{area}]/{resource}

 

ex: workitem id : 123, DefaultCollection, projectname: Project1

Link Url : https://{instance}/DefaultCollection/Project1/_apis/wit/123

 

 Please see api reference for more details.

https://www.visualstudio.com/en-us/docs/integrate/get-started/rest/basics

https://www.visualstudio.com/en-us/docs/integrate/api/wit/work-items#create-a-work-item

 

 Thanks

Chandra

1 REPLY 1
Highlighted
Flow Staff chandbhu
Flow Staff

Re: Visual studio online: link to work item

Hi,

 

When providing 'Link Url'  please follow Visual studio api format to refer to a work item. (workitem url in the vso site doesn't work)

 

https://{instance}[/{collection}[/{team-project}]/_apis[/{area}]/{resource}

 

ex: workitem id : 123, DefaultCollection, projectname: Project1

Link Url : https://{instance}/DefaultCollection/Project1/_apis/wit/123

 

 Please see api reference for more details.

https://www.visualstudio.com/en-us/docs/integrate/get-started/rest/basics

https://www.visualstudio.com/en-us/docs/integrate/api/wit/work-items#create-a-work-item

 

 Thanks

Chandra

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 216 members 4,521 guests
Please welcome our newest community members: