Critical path in API differs from UI

Vladislav Lehelt
edited 05/20/20 in API & Developers

differs = do not work

Project: https://app.smartsheet.com/b/publish?EQBCT=f76e6458a3f64d7d8186be3ed70674ce

In UI critical path contains more then 20 rows. For example #6,#7,#8,#9, etc.

In API I see only two elements. #44 and #45.

I checked my other project. Behavior is the same. In UI critical path is correct, in API is wrong.

Result from API:

curl -s https://api.smartsheet.com/2.0/sheets/5737448354408324 -H "Authorization: Bearer <INSERT YOUR TOKEN HERE>" | jq  '.rows[] | select(.inCriticalPath == true) | {id: .id, name: .

cells[1], inCriticalPath: .inCriticalPath}'

{

 "id": 5651459277121412,

 "name": {

  "columnId": 1729420890269572,

  "value": 44,

  "displayValue": "44"

 },

 "inCriticalPath": true

}

{

 "id": 3399659463436164,

 "name": {

  "columnId": 1729420890269572,

  "value": 45,

  "displayValue": "45"

 },

 "inCriticalPath": true

}

Answers