Project Milestone Sequence

Using the GET api/2.0/project/{id}/milestone . It returns the a number of milestones but no milestone sequence is found. How do I know the milestone sequence? No data field indicates the milestone sequence.

{
  "count": 9,
  "status": 0,
  "statusCode": 200,
  "response": [
    {
      "canEdit": true,
      "canDelete": true,
      "id": 22,
      "title": "Design",
      "description": "",
      "projectOwner": {
        "id": 8,
        "title": "xxx KC-010",
        "status": 0,
        "isPrivate": true
      },
      "deadline": "2023-08-16T00:00:00.0000000Z",
      "isKey": false,
      "isNotify": false,
      "activeTaskCount": 6,
      "closedTaskCount": 0,
      "status": 0,
      "responsible": {
        "id": "1e7f8f3c-852b-11ed-a0bd-0242ac120002",
        "displayName": "Administrator ",
        "avatarSmall": "/skins/default/images/default_user_photo_size_32-32.png?_=-405636142",
        "profileUrl": "http://192.168.1.96/Products/People/Profile.aspx?user=administrator"
      },
      "created": "2023-03-01T15:21:19.0000000+08:00",
      "createdBy": {
        "id": "fbc5a55d-8dd8-4072-9a51-36dcc80fc592",
        "displayName": "ABC",
        "avatarSmall": "/skins/default/images/default_user_photo_size_32-32.png?_=939383410",
        "profileUrl": "http://192.168.1.96/Products/People/Profile.aspx?user=th.wong"
      },
      "updated": "2023-03-01T23:51:29.0000000+08:00"
    },
    {
      "canEdit": true,
      "canDelete": true,
      "id": 24,
      "title": "Tender",
      ....

Hello @Fung
Probably I misunderstood your request. The output result of mentioned GET request contains “created” and “deadline” data for each milestone. Please clarify your exact final goal.

Hi,

Thank you for your reply. We want to retrieve the Milestones by API with project ID. The sequence is exactly the same as the Gantt Chart. However, the API returns the sequence is not the sequence as we expected.

Just to clarify the request. Do I understand it right that you want Get milestone request output result to show milestones in the same hierarchy as Gantt Chart shows?
I’m trying to understand the usage scenario of this request.

Yes, correct. We use the OnlyOffice community platform to mange the construction project schedules. Using the API to retrieve the project milestones data and presented on our dashboard.

We’re looking into it. I will update this thread when we have something to share.

Hello @Fung
We’ve added your suggestion to internal tracksystem (internal number - 61609). We have started working on it.

1 Like