cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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

View solution in original post

1 REPLY 1
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

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 165 members 5,431 guests
Please welcome our newest community members: