Configure a webhook for task status changes in WF | Community
Skip to main content
Level 3
September 6, 2024
Solved

Configure a webhook for task status changes in WF

  • September 6, 2024
  • 1 reply
  • 1029 views

Hi, I'm trying to create a WF fusion scenario that gets triggered whenever any task status changes to be completed in WF. Once the scenario gets the task details, it checks if there are documents associated with the task and if yes, it should upload the document to AEM assets folder. What would be the best possible way to achieve this? I'm trying to use webhook to get updates on task status changes but not sure how to configure it. Thanks in advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lgaertner

Hello prachiz,

 

As you did not write, how you created the webhook, I would start from scratch:

Use the Adobe Workfront -> Watch Events module and create a webhook with
Record Type: Task

State: New State

Event filters: status Equals <status Key> (possibly CPL)

Exclude updates made by this connection - yes

Record Origin: Updated Records Only

This will trigger the Adobe Workfront Event Subscription API and do the work for you.

The status key can be found under Setup -> Project Preferences -> Statuses -> Tasks or under Groups -> <project group> -> Statuses -> Tasks.

 

So the parameters mean, that the Event listener / watcher checks for updated tasks and checks the values after the change (new State) for the status. If it is equal to the given key (e.g. CPL), the scenario goes on, if not, it does not run.

 

As you should check Exclude updates made by this connection to prevent letting the scenario going into a loop, make sure, that you use another user for your connection than the one you use when working in the Workfront UI and change the status of the task. 

 

Regards

Lars

 

1 reply

lgaertner
lgaertnerAccepted solution
Level 9
September 9, 2024

Hello prachiz,

 

As you did not write, how you created the webhook, I would start from scratch:

Use the Adobe Workfront -> Watch Events module and create a webhook with
Record Type: Task

State: New State

Event filters: status Equals <status Key> (possibly CPL)

Exclude updates made by this connection - yes

Record Origin: Updated Records Only

This will trigger the Adobe Workfront Event Subscription API and do the work for you.

The status key can be found under Setup -> Project Preferences -> Statuses -> Tasks or under Groups -> <project group> -> Statuses -> Tasks.

 

So the parameters mean, that the Event listener / watcher checks for updated tasks and checks the values after the change (new State) for the status. If it is equal to the given key (e.g. CPL), the scenario goes on, if not, it does not run.

 

As you should check Exclude updates made by this connection to prevent letting the scenario going into a loop, make sure, that you use another user for your connection than the one you use when working in the Workfront UI and change the status of the task. 

 

Regards

Lars

 

aembeeAuthor
Level 3
September 9, 2024

Hi @lgaertner,

 

Thank you so much for the detailed explanation. I am now able to fetch the list of tasks with status update.