Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Task Predecesors

8 REPLIES 8
Reply
Message 1 of 9
adminplm360
530 Views, 8 Replies

Task Predecesors

I want that the Task A can not be completed unless Task B,C,D are completed. These three task already exist.

 

I know that this can be done through scripting as a validation script. But how can you do it? How can you reference to those tasks? Can someone help me?

8 REPLIES 8
Message 2 of 9
adminplm360
in reply to: adminplm360

Maybe not a validation script but a condition script. The thing is that It wouldn't be possible to reference it by the idm. Because it will change for each project. Each project has Task A,B,C,D. It will have to be by related project name and task name.

Message 3 of 9

Hi Elias,

 

I believe something similar has already been discussed in a previous post. Please let me know if this does not help.

 

Regards,



Bastien Mazeran

Technical Support Specialist

Message 4 of 9

Yes I looked at it, but in that post is done by creating a new item, and I want to reference an existing item by item.RELATED_PROJECT and item.TITLE. Not by the id

Message 5 of 9

Is like the predecesor in the Project Management Schedule, but as a condition in the Task Workflow.

Message 6 of 9

Could you consider storing / organizing your tasks A, B, C and D underneath a sub-project item? That way you could check the sub-project children tasks and potentially solve your task precedence issue by having a field in your task item details page that determines whether task is first or not.



Bastien Mazeran

Technical Support Specialist

Message 7 of 9

The thing is that I wouldn't want for a task to finish unless others are finished. And by doing it the way you're saying it wouldn't force a task to wait until others are finished.

 

I think there is a way, you need to traverse all tasks from the same project with a for loop and check if certain tasks are marked finished. The problem is that I don't know how to do it. I would like if you could help me with that

Message 8 of 9

Hi Elias,

You could use a for loop against item.project.subTasks and get to the individual task status with item.project.subTasks[index].status.

Regards,



Bastien Mazeran

Technical Support Specialist

Message 9 of 9

If the script is called when working on a task item, and the task item has a field that stores the related project information, then you could traverse the project from the task with code shown below:

 

var prj = item.RELATED_PROJECT.project;
for (var index in prj.subTasks) {
   println(prj.subTasks[index].title);
   println(prj.subTasks[index].status);

}



Bastien Mazeran

Technical Support Specialist

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report