Domain ing between MS project and MS team Foundation server (TFS)

Source: Internet
Author: User

TFS and MS Projects work together through their field ing files. TFS allows us to use this ing file to customize the behavior of publishing tasks from TFs to Ms projects.

To modify the ing file in XML format, we need to download it first, then make necessary modifications, and then upload them back to the server.

 

We use the following commandCodeDownload and upload a ing File
Tfsfieldmapping download tfsserver1 application mapfile. xml
Tfsfieldmapping upload tfsserver1 application mapfile. xml

 

We use XML ing elements to map fields between MS Projects and TFs.

Map elements to process several important attributes in the following table

Attribute Description
Workitemtrackingfieldreferencename Required. Specifies the reference name of the work item field.
Projectfield Required. Specifies the name of the project domain. Specifies the name of the predefined domain starting with "PJ. For example, the task name column is pjtaskname. Specify the custom text field column to start with pjtasktext, followed by a digit, for example, pjtasktext11.
Projectname Optional. Specifies the name displayed in the column to the user. If no value is specified for this attribute, the working domain name is used by default.
Projectunits Optional. Specifies the unit type mapped to the project. Valid values are pjminute, pjhour, pjday, pjweek, and pjmonthunit.
Publishonly Optional. If it is set to "true", the column is published to the work item database but not refreshed. This value is mainly used to calculate domains that do not need to be updated in the team resource manager. If it is set to "no", it indicates that the domain is released and refreshed simultaneously. If this parameter is not set, the default value is "no ".

<Mapping workitemtrackingfieldreferencename = "system. Title" projectfield = "pjtaskname"/>

If a domain is computed in the MS Project, it is best to set it to a read-only domain in TFs so that it will not be modified outside the MS Project but will be released at each synchronization.

 

The context field is a different type of work item. It displays the level relationship of the task. For example, if the task name is "risk plan", the context field of its subtask "Planning rishs" reads "Planning risks> risk plan ".

<Contextfield workitemtrackingfieldreferencename = ""/>

 

Other types of domains include: link and attachment domains, and synchronization domains.

 

To ensure that the domain is correctly copied between the TFS and Ms projects, we need to maintain the domain type. The following is a type comparison between TFs and Ms projects.

Work Item domain type Project domain type
Integer Work, units, numbers, and any other field type with values ranging from-2,147,483,648 to 2,147,483,647.
Double Work, units, percentages, fractions, and any other field type with a value range of ± 5. 0x10-324 to ± 1. 7x10308.
String Text (the maximum number of characters is 255 .)
Datetime Datetime.
Treepath Custom outline codes.
Html Not supported.
Plaintext Not supported.
History Not supported.

We can map any domain in the MS Project as long as it starts with pjtask.

 

Finally, we need to spend another time downloading and uploading the domain ing file. To download or upload a ing file, we need to use the tfsfieldmapping tool. Also, you must be a member of the Project Administrator group or have the permission to edit or view project-level information. In addition, you must have the permission to create a ing file in the local path.

The download command is as follows:

TfsfieldmappingDownloadTeam_foundation_serverTeam_projectMappingfile. xml

The Upload Command is as follows:

TfsfieldmappingUploadTeam_foundation_server team_projectMappingfile. xml

 

Original address: http://tutorial.visualstudioteamsystem.com/details.aspx? Item = 40

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.