Trying to set the duration of a task in fusion | Community
Skip to main content
Level 3
January 31, 2024
Question

Trying to set the duration of a task in fusion

  • January 31, 2024
  • 3 replies
  • 2272 views

I am trying to set the duration of a task in Fusion. I am assuming that "day" is the default duration and simply entering the number "2" in the Duration field (trying to enter any letter such as d for day shows an error,. but it is not working. Any help would be appreciated.

3 replies

lgaertner
Level 9
January 31, 2024

Hello Ronald,

 

If you check the API Explorer under TASK you will see, that there are different fields, that have something to do with the task duration.

 

- duration (double)

- durationExpression (string)

- durationMinutes (int)

- durationType (string / enum)

- durationUnit (string / enum)

 

Clicking on each of those entries in the API Explorer will show you some details.

 

I just tried to update a task duration using the module Update record. It simply worked passing an integer to the field duration.

 

Before I used the Read a record module passing * as output to get all fields. There I recognized, that the task I updated was set like this:

 

durationType: A
durationUnit: H

 

The field durationMinutes was calculated automatically.

 

I would suggest playing around a bit, perhaps the durationType can be showstopper when trying to simply update the duration field...

 

I hope I could help a bit.

 

Regards

Lars

OlenkaVarLazCo
January 31, 2024

hey @ronaldea I'm not sure if I understood correctly....
I was trying to test a case updating the duration of a task and yep... the duration is calculated by days

 and it's working correctly for me
- reviewed the connection in both cases (to read and update a record)
- set the ID and Duration

- reviewed the updated field

 

RonaldEaAuthor
Level 3
January 31, 2024

m I may be bugged somehow then because that is the exact field I am updating and yes I am just tying in a number like that but it's NOT updating the duration.

 

I will see about opening a ticket with Workfront. Thanks.

RonaldEaAuthor
Level 3
January 31, 2024

Can you post the output of the fields I listed in my upper post?

 

Regards

Lars


Hi Lars, here is the output from the module where we are creating the task. With that said, it's only durationType S (Simple) because I am setting that in the module that creates the task. As per my previous post, if i DON'T set that manually, it defaults to creating the task with duration type Calculated Work.

 

  • durationType S
  • durationUnit D
Level 3
October 18, 2024

To set the duration in Fusion, you need to work with the "Duration," "Task Constraint," and "Constraint Date" fields, rather than relying on on of the Planned Dates. It's important to understand which Task Constraint you're using, as the "Constraint Date" can relate to either the "Planned Start Date" or "Planned Completion Date" depending on the selected task constraint.

 

For example, I set all my tasks' "Task Constraint" to "Must Start On" in the project template. When Fusion creates the project from this template, I use a router (probably unnecessary, but I like the control).

  • The first module connected to the router updates the "Constraint Date" and "Duration" for all non-parent tasks.
  • The second module (set to run after the first) updates the "Task Constraint" to "Fixed Dates" for all tasks.

Good luck! @ronaldea Let me know if you need further clarification.