{"_id":"5575c1dbacd0472d000ac9ba","__v":17,"category":{"_id":"554a69ba0b54d30d007fe128","project":"5548466bd2c8410d006c2143","pages":["554a69ca156a480d00e2924a","554a69d40b54d30d007fe129","554a6c8258f5650d00ae440d","554a6c8f58f5650d00ae4410","554a6c990b54d30d007fe131","554a7c0e38e3620d00821920","554a7e9d6b448d0d00646b92","554a7ea838e3620d00821929","554a7f016b448d0d00646b94","5575c1dbacd0472d000ac9ba"],"version":"5548466bd2c8410d006c2146","__v":10,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-05-06T19:21:30.961Z","from_sync":false,"order":1,"slug":"projects","title":"Projects"},"version":{"_id":"5548466bd2c8410d006c2146","project":"5548466bd2c8410d006c2143","__v":8,"createdAt":"2015-05-05T04:26:19.796Z","releaseDate":"2015-05-05T04:26:19.796Z","categories":["5548466cd2c8410d006c2147","554a69ba0b54d30d007fe128","554a7f3338e3620d0082192e","5565162e03b6710d00916942","55651a0c65a1130d00400c2b","55651d4565a1130d00400c2f","55651e0165a1130d00400c32","5565217903b6710d0091695f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"project":"5548466bd2c8410d006c2143","user":"55484649b2581a0d00913ff3","parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-06-08T16:24:59.406Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"get","results":{"codes":[{"name":"","code":"{\n  \"status\": \"Okay\",\n  \"Statuses\": [\n    {\n    \t\"id\": 4638,\n    \t\"name\": \"Open\"\n    },\n    {\n    \t\"id\": 16169,\n    \t\"name\": \"Closed\"\n    },\n    {\n    \t\"id\": 27700,\n    \t\"name\": \"Not Started\"\n    },\n    {\n    \t\"id\": 39231,\n   \t \t\"name\": \"On Hold\"\n    },\n    {\n    \t\"id\": 50762,\n   \t\t\"name\": \"Cancelled\"\n    },\n    {\n    \t\"id\": 196513,\n    \t\"name\": \"Deleted\"\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","examples":{"codes":[{"name":"","code":"$.ajax({\n\t\ttype: \"GET\",\n  \turl: \"/api/v1/ProjectData/Statuses.json\", \n  \tcontentType: 'application/json',\n  \tdataType: \"json\", \n  \tsuccess: worked, \n  \theaders: { apiKey: apiKey }\n });","language":"javascript"}]},"auth":"required","params":[],"url":"/ProjectData/statuses.json"},"isReference":false,"order":2,"body":"Each of the end points above(with the exception of 'customFields'), will return a list of key-value pairs. This list represents the list of potential values for the given customizable field and the corresponding unique ids for those values.\n\nThe 'customFields' endpoint returns in the format below, with the properties 'custom1', 'custom2', 'custom3' and 'custom4' containing the list of values for the 4 additional custom fields.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{ \\n  status : \\\"Okay\\\", \\n  custom1 :\\n  [\\n      {\\n        \\\"id\\\": 1244, \\n        name: \\\"List Val 1\\\"\\n      },\\n      {\\n        \\\"id\\\": 1244, \\n        name: \\\"List Val 2\\\"\\n      }\\n  ],\\n  custom2 :\\n     [\\n        {\\n          \\\"id\\\": 1244, \\n          name: \\\"ABC\\\"\\n        },\\n        {\\n          \\\"id\\\": 1244, \\n          name: \\\"DEF\\\"\\n        }\\n    ],\\n  custom3 : [], \\n  custom4 : [] \\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"In ProjectManager.com you can specify a number of customizable fields against projects.\n\nUse this API to fetch a list of all possible values for a given customizable Project field. The API explorer below is set to fetch `statuses` but you can also fetch `priorities`, `managers`, `charge codes` and `custom fields` by changing the endpoint:\n\n- /ProjectData/statuses.json\n- /ProjectData/priorities.json\n- /ProjectData/managers.json\n- /ProjectData/chargecodes.json  (v1 & v2)\n- /ProjectData/customFields.json\n\nYou can then use those values when you're creating Projects via the Create Project API.\n\nNote: the chargecodes.json endpoint Version 2 is also available.  (api.projectmanager.com/api/v2/ProjectData/chargecodes.json) - Version 2 fixes the json naming conventions in the response.","slug":"fetch-project-data","type":"endpoint","title":"Get Project Data"}

getGet Project Data

In ProjectManager.com you can specify a number of customizable fields against projects. Use this API to fetch a list of all possible values for a given customizable Project field. The API explorer below is set to fetch `statuses` but you can also fetch `priorities`, `managers`, `charge codes` and `custom fields` by changing the endpoint: - /ProjectData/statuses.json - /ProjectData/priorities.json - /ProjectData/managers.json - /ProjectData/chargecodes.json (v1 & v2) - /ProjectData/customFields.json You can then use those values when you're creating Projects via the Create Project API. Note: the chargecodes.json endpoint Version 2 is also available. (api.projectmanager.com/api/v2/ProjectData/chargecodes.json) - Version 2 fixes the json naming conventions in the response.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format


Documentation

Each of the end points above(with the exception of 'customFields'), will return a list of key-value pairs. This list represents the list of potential values for the given customizable field and the corresponding unique ids for those values. The 'customFields' endpoint returns in the format below, with the properties 'custom1', 'custom2', 'custom3' and 'custom4' containing the list of values for the 4 additional custom fields. [block:code] { "codes": [ { "code": "{ \n status : \"Okay\", \n custom1 :\n [\n {\n \"id\": 1244, \n name: \"List Val 1\"\n },\n {\n \"id\": 1244, \n name: \"List Val 2\"\n }\n ],\n custom2 :\n [\n {\n \"id\": 1244, \n name: \"ABC\"\n },\n {\n \"id\": 1244, \n name: \"DEF\"\n }\n ],\n custom3 : [], \n custom4 : [] \n}", "language": "json" } ] } [/block]