Expand my Community achievements bar.

The next phase for Workfront Community ideas is coming soon. Learn all about it in our blog!
SOLVED

updating task predecessors

Avatar

Level 5

Is it possible to update task predecessors through Fusion?  I just kick-started a group of 30+ projects, and I need to add cross-project predecessors to a specific task in each project.

 

When assigning predecessors last year (prior to us having Fusion access), I created a task report and pasted in the predecessor values using the project reference and task numbers (e.g., '1988778:24,1988827:24,1988974:24').

 

I'm pretty new to Fusion.  I've been able to download/parse CSV files and update tasks for basic info (assignees; planned start dates; etc.), but Predecessors is not one of the available options in the field list for the Task object.  Can the predecessors be mapped through the mapping panel?  If so, what would that expression be?  I'm not advanced enough at this point to go the API route (and I'm not even sure our IT department has obtained the API package in Fusion).

 

Thanks.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Here is how to configure the module to update a specific task's predcessors.

 

URL field: TASK/{the task ID that you want to update}

Method field: PUT

Body field: this string -> {"predecessorExpression": "####"}

 

In the body field, replace #### with the task number of the predecessor task, so for a cross-project predecessor you would replace it with a number like 16700:5. 

One note, if the task already has predecessors and you just want to add a new one, you need to pull in the current predecessors and add the new one to the string. Just passing the new predecessor will overwrite whatever is already there with the new one.

View solution in original post

3 Replies

Avatar

Community Advisor

Yes, you can update task predecessors using Fusion, but unfortunately you can't use the default Workfront modules, you have to use the Workfront Custom API module, and interact with the field predecessorExpression.

Avatar

Correct answer by
Community Advisor

Here is how to configure the module to update a specific task's predcessors.

 

URL field: TASK/{the task ID that you want to update}

Method field: PUT

Body field: this string -> {"predecessorExpression": "####"}

 

In the body field, replace #### with the task number of the predecessor task, so for a cross-project predecessor you would replace it with a number like 16700:5. 

One note, if the task already has predecessors and you just want to add a new one, you need to pull in the current predecessors and add the new one to the string. Just passing the new predecessor will overwrite whatever is already there with the new one.