コミュニティアチーブメントバーを展開する。

Don’t miss the Workfront AMA: System Smarts & Strategic Starts! Ask your questions about keeping Workfront running smoothly, planning enhancements, reporting, or adoption, and get practical insights from Adobe experts.
解決済み

Adding notes (via API) as a reply to an existing note

Avatar

Level 1

Hey there,

I'm looking to add a note/reply to an existing projects (note/update/comment/reply) using the API.

 

I am able to add a note to an existing project via the endpoint "/attask/api/v17.0/note" using a POST request.

 

{
  "noteObjCode": "PROJ",
  "objID": <<PROJECT OBJ ID>>>,
  "noteText": "Test message"
}

 

And this successfully comes through with the same outcome as "New comment" in the Workfront online interface.ChristopherPi3_0-1717158830453.png

 

I can't however work out how to add a note, to this note. i.e. The same outcome as "Reply".

 

Published Notes don't appear to have their own ObjIDs, and I've tried various versions of the ID, threadID, topObjID, etc, to no avail.

Any thoughts on how this can be achieved? e.g.

ChristopherPi3_1-1717159269601.png

 

1 受け入れられたソリューション

Avatar

正解者
Level 10

Hi,

 

to create a reply to a note, you just need to do the same, you already did, to create a note, but additionally pass the parentNoteID.

 

 

Regards

Lars

元の投稿で解決策を見る

6 返信

Avatar

Community Advisor

Hi Chris,

you need to include threadID in the API call you use to post a note. We do that in our instance and it's definitely doable.

Good luck

Rafal

Avatar

正解者
Level 10

Hi,

 

to create a reply to a note, you just need to do the same, you already did, to create a note, but additionally pass the parentNoteID.

 

 

Regards

Lars

Avatar

Level 1

This solution works! Thanks Lars! Much appreciated.

Avatar

Community Advisor

ahh, true, parent note it is,

funny enough both can have, and likely often do have the same ID (parentNote and thread)

Avatar

Level 1

How to update a note? @Rafal_Bainie 
The update note by Id doesn't update note text on UI.

Avatar

Community Advisor

if you mean update as "edit":

Rafal_Bainie_0-1747404987078.png

than I believe this is only doable for short period of time after update is posted. After that time window I don't think updates are editable