내 커뮤니티 업적 표시줄을 확대합니다.

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