# NEW VSTS Work Item Actions (beta quality)

**URL:** https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607
**Category:** Discussion
**Created:** [June 8, 2018, 9:36am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607 "2018-06-08T09:36:25Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 8, 2018, 9:36am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/1 "2018-06-08T09:36:25Z")

</div>

Hi All

I have uploaded a build with new VSTS Work Item Actions. These actions will work with TFS2017 or later, or VSO. They support Personal Access Token Authentication (no other auth schemes are supported), These actions use the rest api (apiversion 3.0). They mirror the older TFS Work Item actions in functionality, however there were some features that were not available or achievable with the rest api, so there are some minor differences.

The Query, Create and Edit actions are reasonably solid, however the Copy action is somewhat flakey, I'm still trying to figure out why. The biggest issue is the rest api's error reporting is pretty crappy, when things go wrong you get a 400 (bad request) response, but zero info on what exactly is bad about the request. The rest api does not have a copy/clone work item end point, wo we get the work item, change some fields and then use that to create a new one. Sometimes it works, sometimes it doesn't... grrrrr.

[http://downloads.finalbuilder.com/d...0\_2424.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2424.exe)

Anyway, these are still very much BETA qualilty, I spent most of today testing them, but only against TFS2017 so you may encounter issues, if you do reply here or email support. I will pin this topic for now and update the download link above with newer builds as they become available.

---

<div class="post-metadata">

### Author: ![heath1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@heath1](https://www.finalbuilder.com/forums/u/heath1)
#### Post date: [June 8, 2018, 10:38am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/2 "2018-06-08T10:38:11Z")

</div>

Hi Vincent,

> I have uploaded a build with new VSTS Work Item Actions.

   
  
 I’ve installed the 2423 build but I can’t see any actions named VSTS Work Item or any changes to the legacy Team Foundation Query Work Items action.   
  
 What am I missing?   
  
 FYI, this is a FB8 project that already has TFS actions defined against our TFS 2018.1 on-prem server.   
  
 Regards,   
 Heath

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 8, 2018, 1:24am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/3 "2018-06-08T01:24:35Z")

</div>

I made a typo so the package didn’t get added to the installer (not to self, need to make that bit easier). Building again now.

---

<div class="post-metadata">

### Author: ![heath1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@heath1](https://www.finalbuilder.com/forums/u/heath1)
#### Post date: [June 8, 2018, 1:26am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/4 "2018-06-08T01:26:42Z")

</div>

> Posted By [Vincent Parrett](https://www.finalbuilder.com/user-profile/userid/5) on 08 Jun 2018 06:24 AM  
> I made a typo so the package didn't get added to the installer (not to self, need to make that bit easier). Building again now.

Glad to hear even the building experts are human! ;-)

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 8, 2018, 1:32am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/5 "2018-06-08T01:32:44Z")

</div>

Yep, never do something at 6.30pm on a Friday!! Too much of a rush. link updated to FB800\_2424.exe (and I installed it this time to make sure the actions were there!).

---

<div class="post-metadata">

### Author: ![heath1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@heath1](https://www.finalbuilder.com/forums/u/heath1)
#### Post date: [June 11, 2018, 9:37am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/6 "2018-06-11T09:37:40Z")

</div>

Hi Vincent,   
  
 Having created an access token in TFS, with build 2424, VSTS Query is returning error 404. My VSTS default server URI is set to http://:8080/tfs.   
  
 Anything else I can do to troubleshoot the issue?   
  
 Regards,   
 Heath

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 11, 2018, 1:01am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/7 "2018-06-11T01:01:03Z")

</div>

Try   
  
 [http://servername:8080/tfs/DefaultCollection](http://servername:8080/tfs/DefaultCollection)

---

<div class="post-metadata">

### Author: ![heath1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@heath1](https://www.finalbuilder.com/forums/u/heath1)
#### Post date: [June 11, 2018, 1:20am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/8 "2018-06-11T01:20:37Z")

</div>

> Posted By [Vincent Parrett](https://www.finalbuilder.com/user-profile/userid/5) on 11 Jun 2018 06:01 AM  
> Try  
>   
> http://servername:8080/tfs/DefaultCollection

Tried the change and got this...

Error executing request : Invalid URI: The Uri string is too long.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 11, 2018, 1:31am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/9 "2018-06-11T01:31:17Z")

</div>

Ok, will test with TFS2018 tomorrow, need to re-install it as our test vm is having issues (might be a server issue, planning to re-install the host os this week).

---

<div class="post-metadata">

### Author: ![heath1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@heath1](https://www.finalbuilder.com/forums/u/heath1)
#### Post date: [June 14, 2018, 9:32am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/10 "2018-06-14T09:32:52Z")

</div>

Hi Vincent,

Did you manage to test the VTST Query against TFS 2018?

We're now running TFS 2018 Update 2.

Regards,  
Heath

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 14, 2018, 10:38am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/11 "2018-06-14T10:38:31Z")

</div>

Unfortunately not yet, we're having problems with our hyper-v host that has the tfs vm on, looks like we need to re-install hyyper-v server, so will need to wait till the weekend for the downtime as it's hosting other machines that are in constant use. I'll look at adding some debug output to the actions tomorrow so I can see extactly what is happening, as the uri too long issue is rather strange (the uri's are not too long!).  
  
Do you have a proxy between you and the tfs server?

---

<div class="post-metadata">

### Author: ![heath1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@heath1](https://www.finalbuilder.com/forums/u/heath1)
#### Post date: [June 18, 2018, 9:19am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/12 "2018-06-18T09:19:30Z")

</div>

Hi Vincent,

> Do you have a proxy between you and the tfs server?

   
  
 No proxy between build machine running FinalBuilder and TFS on-prem server.   
  
 Regards,   
 Heath

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 18, 2018, 10:35am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/13 "2018-06-18T10:35:47Z")

</div>

Ok thanks for confirming. We rebuilt our server today so hopefully we can get TFS2018 up and running tomorrow.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 19, 2018, 12:58pm UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/14 "2018-06-19T12:58:52Z")

</div>

I finally managed to get TFS2018 (update 2) up and running and test the new actions with it, and I'm please to say worked first time!

This is the output from the query action (specifying an id) :

> Using credentials from Action.  
> Querying for work items...  
> Selecting Work Item ID 1  
> Querying resource : http://tfs2018:8080/tfs/DefaultCollection/\_apis/wit/workitems/1?api-version=3.0  
> Found 1 work item(s)  
> Id 1 (Make it work)  
> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> System.AreaPath=TestProject  
> System.TeamProject=TestProject  
> System.IterationPath=TestProject\Iteration 1  
> System.WorkItemType=Task  
> System.State=New  
> System.Reason=New  
> System.CreatedDate=06/19/2018 00:45:44  
> System.CreatedBy=Vincent E. Parrett   
> System.ChangedDate=06/19/2018 00:45:44  
> System.ChangedBy=Vincent E. Parrett   
> System.Title=Make it work  
> Microsoft.VSTS.Common.StateChangeDate=06/19/2018 00:45:44  
> Microsoft.VSTS.Common.Priority=1  
> System.Description=Make it work with FinalBuilder  
> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

I'm in the process of adding more debug logging, so hopefully we can see what is going on.

My VSTS server is set to : http://tfs2018:8080/tfs/DefaultCollection

If your collection is different then you need to specify that in the server field, you can just copy that part from the browser interface.

---

<div class="post-metadata">

### Author: ![heath1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@heath1](https://www.finalbuilder.com/forums/u/heath1)
#### Post date: [June 20, 2018, 3:55am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/15 "2018-06-20T03:55:11Z")

</div>

Hi Vincent,   
  
 Just tried the test URL with a valid work item on my server and all worked fine.

> http://:8080/tfs/DefaultCollection/\_apis/wit/workitems/?api-version=3.0

   
  
 Let me know when you have a build with more debug output.   
  
 Regards,   
 Heath

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 20, 2018, 10:01am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/16 "2018-06-20T10:01:19Z")

</div>

Please try this build (it logs the resource uri) : [http://downloads.finalbuilder.com/d...0\_2428.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2428.exe)

---

<div class="post-metadata">

### Author: ![heath1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@heath1](https://www.finalbuilder.com/forums/u/heath1)
#### Post date: [June 21, 2018, 11:43am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/17 "2018-06-21T11:43:56Z")

</div>

Hi Vincent,   
  
 Using build 2428 I received the following:   
  
 [code]Using credentials from Options.Querying for work items…Work item query : SELECT [System.Id] FROM WorkItemsQuerying resource : http://\<server\>:8080/tfs/defaultcollection/\<project\>/\_apis/wit/wiql?api-version=3.0Error executing request : Invalid URI: The Uri string is too long.[/code]   
  
 Regards,   
 Heath

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 21, 2018, 2:02am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/18 "2018-06-21T02:02:23Z")

</div>

Hmmm… that’s odd, unless your project name is extremely long. Does it have spaces in the name (wondering if it’s an encoding issue)?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 21, 2018, 2:32am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/19 "2018-06-21T02:32:38Z")

</div>

Please try this build - [http://downloads.finalbuilder.com/d...0\_2429.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2429.exe) - I added uri encoding of the project name (it was needed).

---

<div class="post-metadata">

### Author: ![heath1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@heath1](https://www.finalbuilder.com/forums/u/heath1)
#### Post date: [June 22, 2018, 9:26am UTC](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607/20 "2018-06-22T09:26:07Z")

</div>

The project name is only 12 characters long without any spaces or special characters.   
  
 I’m still getting

> Error executing request : Invalid URI: The Uri string is too long.

   
  
 Do you want to drop me an email so we can take this offline?   
  
 Regards,   
 Heath

[Next page](https://www.finalbuilder.com/forums/t/new-vsts-work-item-actions-beta-quality/2607.md?page=2)
