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: 

Milestone Scripting HELP!

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Asingh5
561 Views, 2 Replies

Milestone Scripting HELP!

Below is a example script for an Enter State milestone.

 

How do I script a Leave State Milestone? Please note I have tried the line below and it does not work.

milestone.milestoneType = 'LEAVE'; 

 

var milestone = item.addMilestone(); 

milestone.setWorkflowState('Short name'); 
milestone.milestoneType = 'ENTER'; 
milestone.milestoneDate = new Date(); 
milestone.warnThreshold = 10; 
milestone.progress = 50;
2 REPLIES 2
Message 2 of 3
Andrew.Shaw
in reply to: Asingh5

Dear Amrit,

 

The two values for milestones.milestoneType are ENTER and EXIT.

 

You can find the relevant scripting reference in the wiki here: Scripting Reference

 

Best regards,



Andrew Shaw
Premium Support Specialist PLM/PDM
Global Services
Autodesk, Inc.

Message 3 of 3
Asingh5
in reply to: Andrew.Shaw

Thank you for your help

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

Post to forums