Expand my Community achievements bar.

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.
SOLVED

Add task comments via Rest API

Avatar

Level 2

Hi All,

I am currently working on POC by integrating the Adobe campaign classic with Workfront. In that, I want to post comments into the Workfront task from the Adobe campaign classic via REST API. I explored all the REST API endpoints in this link https://developer.workfront.com/ , but could not find the POST method that I was expecting. Could any one of please respond to me and provide a thoughtful answer/solution?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hello ignatius,

 

Do you want to post an update into the task?

 

Then you can use the endpoint NOTE using a POST request with a body like this:

 

{
    "tags": [
        {
            "objID": "<userId>",
            "objObjCode": "USER"
        }
    ],
    "objID": "<taskId>",
    "subject": "Task update",
    "noteText": "Task was updated",
    "isMessage": true,
    "noteObjCode": "TASK",
    "json": "{}"

 

 

Regards.

Lars

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Hello ignatius,

 

Do you want to post an update into the task?

 

Then you can use the endpoint NOTE using a POST request with a body like this:

 

{
    "tags": [
        {
            "objID": "<userId>",
            "objObjCode": "USER"
        }
    ],
    "objID": "<taskId>",
    "subject": "Task update",
    "noteText": "Task was updated",
    "isMessage": true,
    "noteObjCode": "TASK",
    "json": "{}"

 

 

Regards.

Lars

Avatar

Level 2

Hi Lars,

 

Thank you so much. 

It works for me

Avatar

Employee

Hi Lars, didnt work for me.

POST : /attask/api/v9.0/note
{
	"error": {
		"message": "refObjCode cannot be null",
		"title": null,
		"msgKey": "exception.attask",
		"attributes": [
			""
		],
		"code": 0
	}
}

Avatar

Level 10

Hello Lalit,

 

can you please post your full API call? Besides that, did you also try the same using the current API (version 18)?

 

v9.0 is a bit outdated...

 

 

Regards

Lars