cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
Power Automate
Power Automate

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
Power Automate
Power Automate

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (6,159)