CSV Syntax

This section describes the syntax required for the different elements in a CSV file.

This page discusses:

Character Encoding

The character encoding used for both import and export is UTF-8. Values in UTF-8 encoding ensure character integrity in the import and export results.

Creation or Update

Each line represents an object. An import creates, updates, or deletes the corresponding object depending on the value of the URI, External Id, and Operation columns. For more about these columns, see Line Values.

Some columns are ignored during an update. For example, the Assignee and Dependencies columns are ignored except during creation.

Level Syntax

Each line (except for the root project line) must have a "level" value.

The "level" value represents the tree structure of the project and contents to import:

  • For elements directly under the root project, the "level" value is an integer, starting from 1. It corresponds to the display order of the element under the root-project.
  • For elements under a subproject, the "level" value is built by adding to the parent project’s "level" value a dot character ( . ) and the position integer of the element under its parent project or task.

For example:

LevelLevel,type,NAME
 ,Enterprise Project,Main Project
1,Gate,First main Milestone
2,Task,First Summary Task
2.1,Task,First main Task
2.2,Task,Second summary Task
2.2.1,Task,Deep Task
3,Phase,sub (team) project
3.1,Gate,First Milestone of sub-project
3.2,Task,First task of sub-project
3.3,Project,deeper project
3.3.1,Task,"Unique task, inside deeper project"
3.4,Task,"Second, and last, task of sub-project"

Here is the imported structure:

Note: Some spreadsheet programs interpret levels with one ‘.’ as numbers. This may cause problems if the last part of the level ends with a 0, for example, 1.10 or 34.120. The trailing 0 might be removed, causing valid import files to become invalid. Therefore, it is recommended not to use levels with one ‘.’ and a trailing 0. Instead of 1.10 you might skip to 1.11. As an alternative, use another type of program to edit CSV files.

Name Syntax

Each line must have a nonempty "name" value.

The "name" value is free text used as the element's Title in Project Planning.

Starting and trailing blanks are removed.

Type Syntax

Each line (except for the root project’s line) must have a "type" value.

Type is mapped as follows:

Type (case-insensitive) Mapped In Project Planning as
"Project" or "Phase" "Team Project"
"Enterprise Project" or "xProject" "Enterprise Project"
"agile project" or "Agile" "Agile Project"
"Task" "Task"

For an Agile project this can also be "Backlog Task."

"Milestone" "Milestone"
"Gate" "Gate"
Note: A Team Project cannot contain a sub Enterprise Project.

Subtype Syntax

A Subtype is optional for milestones. It defines its Type with one of these values: Approved, Closed, Defined, Deployed, Designed, Developed, External, Launched, and Planned. These values are case-insensitive.

Dependencies Syntax

The "dependencies" column contains the description of dependencies applying to the element.

Each dependency is specified by:

  • A number indicating the constraining element by its definition order in the CSV file: root project as 0, the element defined on the next line as 1, the element defined on the following line is 2, and so on.
  • A single ( : ) or double colon ( :: ).
    • A single colon indicates an enforced dependency. For example, "3:FS+1D" expresses an enforced dependency.
    • A double colon indicates a flexible dependency. For example, "3::FS+1D" expresses a flexible dependency.
  • A type given by two letters (case insensitive):
    • FS (Finish-to-Start): this element (the one defined in the current line) cannot start until the "number" element finishes.
    • SF (Start-to-Finish): this element cannot finish until the "number" element starts.
    • FF (Finish-to-Finish): this element cannot finish until the "number" element finishes.
    • SS (Start-to-Start): this element cannot start until the "number" element starts

Optionally:

  • A plus ( + ) or a minus ( – ) character.
  • A delay expressed as an integer, optionally followed by a unit: "D" for days (default) or "H" for hours.

Note:

In Project Planning, constraints can only be set between Gates, Tasks, and Milestones, not Projects.

If two or more dependencies are defined, they must be separated by a comma ( , ).

For example:

Level,Type,Name,Dependencies
0,Project,Main Project,
1,Gate,First main Milestone,
2,Task,First main Task,1:FS3,Phase,sub-project,
3.1,Gate,First Milestone of sub-project,1:FS+1D
3.2,Task,First task of sub-project,"1:FS-1,4:SF+5D"
3.3,Project,deeper project,
3.3.1,Task,Unique task of deeper project,4:SS+4h

For modifying and removing dependencies:

  • To modify the dependency between a current element and another one, enter the new dependency specification that replaces the previous one, for example: 3.1,Gate,First Milestone of sub-project,1::SF-2D. This updates the dependency between the current element and the one given at the first rank (after root project = rank 0) in the CSV file. It changes the type to flexible, the orientation to Start-To-Finish, and the delay to minus 2 days "SF-2D".
  • To remove an existing dependency between the current element and another one, add a minus sign before the reference number, for example: 3.1,Gate,First Milestone of sub-project, -1. This removes the dependency between the current element and the one given at the first rank (after root project = rank 0) in the CSV file.
  • To remove ALL existing dependencies on a current element, add a minus sign in the dependencies column, for example: 3.2,Task,First task of sub-project,-. This removes the two dependencies give in the example.

Resolution Syntax

Gates are fully importable and exportable to a CSV file. Their type is "Gate" and a column named "Resolution" contains their resolution, if it is not blank.

You can set one of the following resolution attribute field values in the CSV file: Go, Kill, Hold, Recycle, or Conditional Go.

State Syntax

The maturity "state" can contain only one of these values (case insensitive):

Maturity State Mapped In Project Planning as
"To Do," "Open," "Ready," or "Preliminary" "To Do"
"In Progress," "In Work," or "In Review" "In Work"
"Done" or "Completed" "Completed"

If another value is given, a warning will occur. If the "state" column is missing, or the "state" value is incorrect or empty, the Project Planning "To Do" state will be set by default.

% Syntax

The "%" is an integer indicating the percentage of completion of a Task. The "%" is ignored in Project Planning for Gate/Milestone or Project/Phase.

If the "%" column is missing, incorrect, or empty, a percentage corresponding to the task's state will be used.

For example:

Level,type,NAME,state,%
0, ,Main Project,,
1,Gate,First main Milestone,,
2,Task,First main Task,In Work,30
3,Phase,sub-project,Ready,
3.1,Gate,First Milestone of sub-project,Preliminary,
3.2,Task,First task of sub-project,In Review,0
4,Task,Last main Task,Complete,100

Duration Syntax

A line defining a Task must have a valid "duration" value. Duration is ignored on lines describing a Gate/Milestone or a Project/Phase.

A duration is expressed as an integer, optionally followed by a unit. The unit is case insensitive and can be:

  • "D" or "Day" or "Days" (by default)
  • "H" or "Hour" or "Hours"

For example:

Level,type,Name,Start,End Date,duration
0, ,Main Project,,,
1,Gate,First Main Milestone,2018-12-01,,
2,Task,First Main Task,2018-12-01,2018-12-15,10D
3,Phase,sub-project,,,
3.1,Gate,First Milestone of sub-project,2018-12-07,,
3.2,Task,First task of sub-project,2018-12-07T08:00Z,2018-12-07T12:00Z,4 hours
3.3,Task,Last  task of sub-project,2018-12-07,2018-12-09,2

Duration Offset Syntax

A line defining a task may have a valid "duration offset" value. Duration is ignored on lines describing a Gate/Milestone or a Project/Phase.

A duration offset uses the same syntax as duration.

The duration offset value should be less than or equal to the duration value.

For example:

level,type,name,start,end date,duration,duration offset
0, ,Main Project,,,
1,Gate,First main Milestone,2018-12-01,,
2,Task,First main Task,2018-12-01,2018-12-15,10D
3,Phase,sub-project,,,
3.1,Gate,First Milestone of sub-project,2018-12-07,,
3.2,Task,First task of sub-project,2018-12-07T08:00Z,2018-12-07T12:00Z,4 hours,2H
3.3,Task,Last  task of sub-project,2018-12-07,2018-12-09,2,1

Fixed Start and Fixed End Syntax

A TRUE value sets the corresponding date as fixed.

A FALSE value sets the corresponding date to not fixed.

A “No Later Than" constraint is indicated by "<date".

A "No Earlier Than" constraint is indicated by ">date".

Start, Actual Start, End, Actual End Dates Syntax

The line defining a Gate or Milestone must have a valid "start" (or "estimated start") value. if it is in the "Done" state, it may also have an "actual start date".

The line defining a Task must have a valid "start" or "estimated start" value and a valid "end" or "estimated end" value. if it is "In Progress", it may also have an "actual start date". If it is "Done", it may have both an "actual start date" and an "actual end date".

If an actual date is not provided, the corresponding estimated date is reused.

Project start and end dates are exported/imported using the start and end date columns in the project line. Setting any of these dates on a project also creates a milestone with the Launched/Closed subtype, unless such a milestone is provided in the CSV file. If such milestones are provided and their dates are not consistent with the parent project start/end dates, the dates in the project line are used.

Dates are ignored on lines describing a Phase.

Most date and time formats supported by ECMA script are supported here, but it is recommended to use the ISO-8601 YYYY-MM-DD format. For example, September 27, 2012 is represented as 2012-09-27. You can also add time by appending the letter "T" followed by hh:mm or hh:mm:ss. For example, March 2, 2017 at 10 hours, 35 minutes and 2 seconds is represented as 2017-03-02T10:35:02.

If you add time, you can also specify a time zone by adding the letter "Z" for UTC time (the default if no time zone is specified) or an offset to it in the expression "+" or "-" hh:mm (or only hh). For example, May 12, 2015 at 12:30 in Hawaii is represented as 2015-05-12T12:30-10:00.

Dates in the CSV are handled as follows:

  • If the date format has a timestamp associated with it, the date will be the same as it exists in the file. Examples of date formats that are saved as found are: 2021-02-03T09:23:12Z, 2021-02-03T09:23:12.002Z, and 2021-03-11T16:26:04+00:00.
  • If the date format does not have a timestamp associated with it, the time (12:00 hours) will be added to it. For example, if the date provided in the CSV is 2021-03-09, it is saved as 2021-03-09T12:00:00Z.

Note:

Some date syntax is potentially confusing. For example, 01/05/2019 can be interpreted (depending on local conventions), as May 1st or January 5th. Therefore, it is strongly recommended to use the ISO date standard.

Owner Syntax

The "owner" contains the login of the person who owns the element.

Note: This value is always ignored. In a new import the importing user becomes the owner of the newly created elements. In addition, the owner does not change during an update.

Assignees Syntax

The "assignee" column can contain one or more persons or user profiles.

  • For persons, use the login of the person assigned to the element.
  • For user profiles, use ‘#nnn’ where nnn is the index of the user profile line in the CSV file. This uses the same convention as dependencies where the root project has index = 0. Therefore, #001 would be the user profile defined in the line with index 1, which is the one following the root project.
For more than one assignee, each assignee must be separated by commas, and the entire field must be enclosed by quotes. For more information, see Content Structure.

Only persons who have launched the Project Planning app at least once or are members of at least one project or assigned to at least one task can be assigned through import this way. If a person’s login is added to an assignee field and that person does not meet this condition, a warning is shown in the report window and the person is not assigned.

You can specify users to add or remove as assignees on existing elements by adding a "+" or a "-" before their login or before the user profile "#nnn".

Leaders, Authors, and Viewers Syntax

Each of these columns can contain a comma-separated list of logins of real persons, but not a reference to a user profile. These lsits are only taken into account on the Project line.

You can specify users to add or remove by adding a "+" or a "-" before their login.

Notes:
  • Pending users and user groups are not imported.
  • You cannot put a reference to a user profile in these columns. You should use the "profile responsibility" column to define the role of a user-profile.

User Profiles Syntax

For "export as file," a new line is added for each user profile:

  • Its parent (defined either by the level or parent index column) must be a project.
  • The type is “User Profile” (case-insensitive).
  • The name must not be empty.
  • The assignees can contain a real user login to resolve it, or remain empty if not. If multiple logins are given, only the first one is used.
  • The profile definition must be a valid JSON at the format expected by 3DWorkforce.
  • The profile responsibility can have the values Leader, Author, or Viewer. If omitted, it defaults to Author.
  • Other columns are ignored.

For example:

parent index name type profile definition profile responsibility duration start end assignees
Top Project Project #1
0 LogicUser-1 User Profile {...} Leader
0 LogicUser-2 User Profile {...} blc
0 Main Task Task 5D 2021-09-24 2021-10-01 #2,#1

For "update existing," user profile lines are ignored.

Notes:
  • If only a subproject is exported, but it uses a user profile defined at an upper level, this user profile is exported as a child of the exported project.
  • If the user profile definition is not valid, a message states the problem, and the user profile is not created.
  • If 3DWorkforce is not available for importing a user, an error message informs the user. All user profiles lines are ignored, as well as #000 assignments.

Restrict Access Syntax

The column "Restrict Assignee’ is added in the exported CSV file, with the value "true" or "false" on enterprise project lines to reflect the "Restrict Assignee Access" status of the project.

If present at import/update, this value is used to set/update the "Restrict Assignee Access" status of the enterprise project. It is ignored (no message) on other lines.

An invalid value (not "true" or "false") is reported to the user and ignored. An empty value sets the default value (at import) or performs no change (at update).

Description Syntax

The "Description" value is free text used as an element’s Description in Project Planning.

Starting and trailing blanks are removed.

For example:

Level,Type,Name,Description
0,Project,Root Project,some text about this project
1,Gate,First Main Milestone,"comments on ""this"" 
gate"

Here is the imported structure:

Note: The description can contain some formatting and is saved as rich text. Therefore, if the description is edited in the property panel, some html tags (<p>) can be added. Those are exported and should be expected.

Priority Syntax

Priority only applies to tasks and is ignored for other objects. Priority can contain one of these values (case-insensitive):

  • Low
  • Medium
  • High
  • Urgent

If another value is used, a warning occurs. If the "priority" column is missing, or the "priority" value is incorrect or empty, the "Medium" priority is set by default.

Strategy Syntax

Strategy applies to projects. It contains the "Current Date" (default), "Start Date," "Start Date Using Planned Date,""End Date," or "End Date Using Planned Date" that corresponds to one of the supported scheduling-from strategies.

Note: The "End Date" strategy requires an end date on the project. A "Start Date" strategy requires a start date on the project. If such a date is missing, an error displays in the progress popup and the strategy is ignored.

Actual Date Strategy Syntax

This column applies to a project. It contains either "keep planned dates" or "use current dates" (default).

Template Syntax

Template applies only to root projects. If set to "true" (case-insensitive) this registers the whole project as a template.

URI Syntax

If the URI column contains a valid Project Planning URI, and an object with this URI exists, it is updated.

If no object with this URI is found, an error is displayed and the line is ignored.

This is intended for projects that are first created in Project Planning, then exported, and later reimported after the CSV file is modified. Do not fill in this column manually.

Custom Extension Syntax

At export:

  • A column "custom extension" is added to CSV output. When a given element is associated with a custom extension, it contains the URI of the custom extension; otherwise, it remains empty.
  • For each custom attribute associated with any of the custom extensions used in an exported project, a column is added and named with the custom attribute URI. It contains the custom attribute value.

For "import as new":

If the input CSV file contains such columns, the import associates with each element the custom extension identified by the provided URI. It also sets the corresponding custom attribute values in the CSV to match the custom attribute specifications. On elements without a "custom extension" value, the custom attribute columns are ignored.

  • If the custom extension is not applicable to the line element, a warning message displays that the element is created without a custom extension.
  • If a custom attribute value in the CSV is invalid, a warning displays and its default value, if defined, is used instead.
  • If the custom attribute is "Mandatory", and no value is given in the CSV file nor the default value defined in the extension, the creation will occur without the extension, and a warning message displays.

For "update existing":

  • A custom extension cannot be set/modified at update, so the value given in the CSV is always ignored. However, a warning message displays.
  • Each corresponding custom attribute is updated with the provided value, if valid.

External Id Syntax

The external Id column is intended for importing projects from an external system. This column should contain a string that is unique to the object in question within its native system. This should use only characters in the following list:

  • Basic alphanumeric (a-zA-Z0-9, no accented characters)
  • -:.;&_?#/

If a line has a value in the External Id, the import looks for an existing object with the same combination External Id/External System and, if found it, updates it. If no object with this combination is found, a new one is created.

External System Syntax

The external system column is used with the External Id. It is highly recommended to always have an External System value when you have an External Id.

All objects from the same system should have the same string in that column.

Operation Syntax

The Operation column is used only when updating an existing project.

This column can have the value DELETE (case independent) or be blank. If DELETE, the existing object, defined at that line, either by its URI or by its external id/system, is deleted provided it does exist in the database and the user performing the update has rights to delete it. If not, a warning is issued and nothing is done.

Contributes to Syntax

A JSON-formatted text that identifies the document associated with a backlog task in an Agile project.

This JSON code must contain two fields: "service" (name of the service storing the document) and "identifier" (id of the document in that service).

Note: For at update, it is not possible to modify the "contributes to" of a backlog task.

For more information, see the Developer Assistance topic about 3DPLAN REST services.

Attachment and Deliverable Syntax

These 2 columns contain one or more references to documents using the same JSON syntax as "Contributes To" or an array of such JSON code.

[{
  "service" : "3DSpace",
  "identifier" : "doc1",
  "URI": "dscom:3DSpace_doc1"
},{...}]

Note: For an update, you can add a new attachment or deliverable to an existing element, but you cannot remove any.

Story Points Syntax

A positive number containing the story points associated to a task or backlog task in an Agile project.

Iteration Capacity Syntax

A positive integer containing the iteration capacity of a project

Esitmated Effort and Actual Effort Syntax

These two columns contain the effort of a task, using the same notation as the Duration (for example, "10D" or "200 hours").

Color Syntax

Indicates the background color shown in the Schedule view for a project, task, milestone, or gate. The value contains the following: "#" (optional) followed by 6 hexadecimal characters (range 0 to 9, A to F). The first 2 characters are the red intensity, the next 2 the green, and last 2 the blue.

Checklist Syntax

A JSON-formatted text that identifies the checklist associated with a project, task, milestone, or gate. Each checklist is an array of JSON objects with attributes that are case-sensitive:

  • URI - the identifier of each item. (Optional. If missing, a new item is added.)
  • description - the checklist item description. (Optional)
  • name - the checklist item name. (Mandatory)
  • requiresdeliverable - "true" or "false" whether the item requires a deliverable or not (default is false).
  • deliverable - JSON code with "service" and "identifier" fields linking to a document.
  • value - the value of the checklist item. Values are case-insensitive: "Done", "Yes", "No", or "No Answer" (default).
Note: "Done" is only valid for an item requiring a deliverable. "Yes" or "No" values apply to items not requiring a deliverable.

For example:

name type check list
Top Project Project

[{"URI": "uuid :abcd-1234”, "description": “item 1 description”, “value": “yes”, "name": "project check 1”},

{"URI": "uuid :efgh-5678”, "name": "project check 2”}]
Main Task Task [{"URI": "uuid :ijkl-9101112”, "name": "task check item”, "value": “NO”}]
M1 Milestone {"URI": "uuid:xyz-9999", "name": "milestone check item with deliverable", "requiresdeliverable": true, "deliverable": { "service": "3DSpace", "identifier": "ABCDoc" }, "value": "Done"}

Note: For "import as new," the URI fields in the checklist are ignored (like the URI column) in order to make an exact copy of a project.