Hi,
I am trying to get the status of a project. Being more specific this value:
"status_type": "on_hold"
If I execute
/status_updates/{status_guid}
I get this value, good so far.
"data": {
"gid": "1202108306050098",
"created_at": "2022-04-11T14:59:03.974Z",
.
.
.
"resource_type": "status_update",
"resource_subtype": "project_status_update",
"status_type": "on_hold",
However, in the documentation (https://developers.asana.com/docs/status-updates), it states that endpoint is called with
client.statusupdates.getStatus(statusGid)
but when I execute it in nodejs it reports
TypeError: Cannot read property 'getStatus' of undefined
because there is no object called “statusupdates” in client (I checked browsing the object in VS).
So I have 3 questions, any support here will be appreciated
1)What is the method to call /status_updates/{status_guid} ?
2)Seems the documentation is not aligned with the node-asana. I am using version 0.18.6. Am I doing something wrong?
3)To get the status_type I am first getting the project detail with
client.projects.getProject(gid);
which calls
/projects/{gid}
and returns
"data": {
"gid": "1202018361552925",
"archived": false,
.
.
.
"current_status": {
"gid": "1202108306050098",
and in project detail I get the status gid and then call the /status_updates, so these are 2 calls. Is there any way to get the project detail along with the status_type is one single call?
Thank you.