Compartilhar via


ALM - Integration Team Foundation Server (TFS) and Project Server-Full Wiki

Translate for: http://social.technet.microsoft.com/wiki/pt-br/contents/articles/22712.integracao-team-foundation-server-tfs-e-project-server-wiki-completo.aspx
**
Credits: Alan Carlos
**


INTRODUCTION:

This Wiki aims to explain all the steps for the integration of Team Foundation Server 2012 or 2013 and Project Server 2013, and the validation tests to identify if the timing is working properly .

Integrating TFS and Project Server is extremely important because in addition to having the well aligned between the Design and Development team , the ScrumMaster or project and DEV team , also avoid many update locations where the developer needs to update the TFS , Web Project Server , etc., plus team and project leaders have to stay urging the team to update the information is current . Ie a lot of work that can be avoided doing this timing and leaving everyone happy and doing what really matters: Schedule , Create , etc. .

REQUIREMENTS :

Observe the requirements to perform the procedure correctly.

**- Permissions
**
Administrative rights on the TFS and Project Server for TFS service account that will run the sync .

http://qualidadeeti.files.wordpress.com/2014/01/image99.png?w=549

Administrative user rights to execute the commands of sync. Important that this user is also the TFS and Project Server administrator to access the URL paths.

http://qualidadeeti.files.wordpress.com/2014/01/image100.png?w=549

- Visual Studio Team Foundation Server 2013

This post assumes that TFS 2013 is already installed and functional. Doubts installation, may be taken in the installation guide from Microsoft.
http://msdn.microsoft.com/pt-br/library/dd631899.aspx

- Visual Studio Team Explorer 2013

Installing Team Explorer for execution of CLI commands timing is required. Install it on your workstation and the TFS server.

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb101.png?w=173&h=244

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb102.png?w=176&h=244

- Visual Studio 2013 Team Foundation Server Power Tools

Also install the TFS Power Tools to be able to use it when necessary, how to edit Work Items, etc.. Install it on your workstation and the TFS server.

http://visualstudiogallery.msdn.microsoft.com/f017b10c-02b4-4d6d-9845-58a06545627f

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb103.png?w=244&h=186

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb104.png?w=244&h=186

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb105.png?w=244&h=189

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb106.png?w=244&h=187

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb107.png?w=244&h=189

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb108.png?w=244&h=188

- Sharepoint Server 2013

This post assumes that Sharepoint 2013 is already installed and configured integration with TFS 2013, and also with Project Server 2013. Doubts installation, may be taken in the installation guide from Microsoft.

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb109.png?w=244&h=65

http://msdn.microsoft.com/pt-br/library/hh667648.aspx

**- Project Server 2013
**
This post assumes that Project Server 2013 is already installed and functional. Doubts installation, may be taken in the installation guide from Microsoft.

http://technet.microsoft.com/pt-br/library/ee662109.aspx

- Extensions Project Server 2013 for Team Foundation Server 2013 that is available in the installation media of TFS 2013

http://msdn.microsoft.com/en-us/library/hh549244.aspx

To install extensions in TFS Project, follow the procedure below:

Open the media server on your Project Server and perform the installation by following the steps below:

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb110.png?w=244&h=148

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb111.png?w=244&h=228

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb112.png?w=244&h=228

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb113.png?w=244&h=230

SCENARIO FOR INTEGRATION

After installing the prerequisites, we will create a project from scratch to perform the integration.

First you must execute 03 commands (run the commands with administrative rights, preferably within the TFS server) to enable sync TFS with Project Server.

Shell Commands for doTFS and Project Server Integration:

Run this command from Team Explorer or Command Prompt TFS:

Attention (run CMD Visual Studio 2013).

1. Command: tfsadmin projectserver / RegisterPWA / PWA: http://projectserver/PWA / tfs: https://tfsserver/tfs/

Note: In the command example is HTTPS, but usually work on HTTP port 8080 if your TFS is published that way.

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb114.png?w=244&h=74

Then execute the following command:

2. Command: tfsadmin projectserver / MapPWAToCollection / PWA: http://projectserver/PWA / collection: https://tfsserver/tfs/collection

Note: Collection is a collection of designs that you will map.

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb115.png?w=244&h=123

Case shows some error, see this Wiki I made precisely to the problem: http://social.technet.microsoft.com/wiki/pt-br/contents/articles/22691.tf244064-an-error-occurred-while-retrieving-event-handler-tfsapprovalsupdatedeventhandler-generalsecurityaccessdenied.aspx

3. Command: tfsadmin projectserver / UploadFieldMappings / collection: https://tfsserver/tfs/collection / useDefaultFieldMappings

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb116.png?w=244&h=96

**Note: The screen used the / force because he had already mapped the fields, but for demonstration performed the process again.
**
Any questions, you can refer to the link: http://msdn.microsoft.com/en-us/library/gg412656.aspx

Creating a Team Project in TFS

Create a development project in TFS called Project Example XII.

Creating a Development Project in Team Foundation Server 2013 (within the Collection you synchronized):

Follow the steps below:

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb117.png?w=244&h=117

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb118.png?w=244&h=199

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb119.png?w=244&h=198

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb120.png?w=244&h=201

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb121.png?w=244&h=200

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb122.png?w=244&h=200

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb123.png?w=244&h=199

**Creating a project in Project Server (EPM).
**
Create a project called Project EPM Example XII (with the same name as the Project Team Foundation Server).

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb124.png?w=244&h=121

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb125.png?w=244&h=188

After creating the two projects, we will synchronize their fields (in the case will map Requirement, Task and Bug). To do this run the following command:

4. Command: tfsadmin projectserver / MapPlanToTeamProject / collection: https://tfsserver/tfs/collection */ enterpriseproject: Project Example XII / teamproject: Project Example XII / workitemtypes: “Requirement, Bug Task”
*
Depending on the type of methodology you selected, you will map the corresponding fields. In this case, we chose to use CMMI Requirement, if Scrum, we would map PBI.

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb126.png?w=244&h=201

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb127.png?w=244&h=101

Done! The fields are mapped, now to the tests.

VALIDATION

If everything is configured correctly, you can observe inside a Work Item project timing, in your Visual Studio, created a new tab called Project Server.

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb128.png?w=244&h=93

Ok, looks like it is functional, we will hold the first test!

***Creating Work Item Visual Studio to Publish to Project Server


Create a Task in Visual Studio:

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb129.png?w=244&h=128

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb130.png?w=244&h=78

Then go open the Project Server and select to sync with Project Server:

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb131.png?w=244&h=71

Note: In the case of the figure, the name of the enterprise project is PJExemploTFS because just creating a new project in TFS and Project Server with this name, but if the project would Example XII.

Then save your Task.

Note: If the TF285010 error, see this Wiki I posted the solution for error.

http://social.technet.microsoft.com/wiki/pt-br/contents/articles/22711.tf285010-the-following-user-is-not-a-valid-project-server-resource.aspx

To validate if your Work Item synchronized, check the History tab – All Changes and make sure the timing was successful, as the screenshot below:

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb132.png?w=244&h=126

This means that your Work Item was for Project Server and is awaiting approval. Let’s check?

Open your Web Project Server and check the corresponding design and approvals and check for an approval on the new Work Item created:

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb133.png?w=244&h=40

Now and approve and verify that the Work Item is already available in Project Professional screen

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb134.png?w=244&h=99

And there he is!

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb135.png?w=244&h=54

Creating Work Item Project Professional to Publish to Team Foundation Server

Open your Project Professional and select Enterprise Project that is synchronized with the TFS Team Project.

Create Work Item and assign the desired information such as name, feature (which will be Assigned to TFS), etc..

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb136.png?w=244&h=65

Save and publish.

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb137.png?w=244&h=114

Wait a few minutes and check if the Work Item is now available on your Visual Studio.

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb138.png?w=244&h=69

And there it is!

Evaluating the Work Item is updated

Let’s change some fields in Work Item and save it:

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb139.png?w=244&h=109

Now, let us identify if there was a change in the schedule of the Project Professional. Click to check progress of the Project in Question:

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb140.png?w=244&h=84

Approve the new update.

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb141.png?w=244&h=72

Click OK.

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb142.png?w=244&h=87

Click OK.

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb143.png?w=244&h=129

Click OK.

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb144.png?w=244&h=133

See that there was a breakthrough. Calculated% already in the way the Project Manager like!

http://qualidadeeti.files.wordpress.com/2014/01/image_thumb145.png?w=244&h=14

Well that’s it, it is possible to synchronize more projects, collections, Work Items, as you need!


Others Languages

This article is also available in the following languages​​:

Fonts: http://msdn.microsoft.com/en-us/library/gg455680.aspx Translate for: http://social.technet.microsoft.com/wiki/pt-br/contents/articles/22712.integracao-team-foundation-server-tfs-e-project-server-wiki-completo.aspx
Credits: Alan Carlos