Milestones scripting not working?!

Milestones scripting not working?!

PLM-Sylvain.Bailly
Collaborator Collaborator
980 Views
4 Replies
Message 1 of 5

Milestones scripting not working?!

PLM-Sylvain.Bailly
Collaborator
Collaborator

Hello,

 

Everything was fine with the scripting used to update our milestones defined as "100%" every time we edit a PLM object but we have noticed today that the script is not working. Could you please terll me if an update was made on the scripting on the Autodesk side?

 

Action script call "On Edit":

updateMileStones(item.DUE_DATE);

 

Library script call by the Action script:

// Function to update the milestones of a PLM object
// Only the milestones with a percentage equals to 100% will be updated according the field "Due date" of the tab "Details"
function updateMileStones(dueDate){
    var i = 0;
    
    for(i; i < item.milestones.length; i++){
        if(item.milestones[i].progress === 100){
            item.milestones[i].milestoneDate = dueDate; 
        }
    }
	return;
}

 

It cannot be more easier. Why it is not working now?

Thanks,

Sylvain

0 Likes
Accepted solutions (1)
981 Views
4 Replies
Replies (4)
Message 2 of 5

PLM-Sylvain.Bailly
Collaborator
Collaborator

As you can see in the log tab, the script is running but the value is not updated in the tab "Milestones":

ChangeLog.png

0 Likes
Message 3 of 5

PLM-Sylvain.Bailly
Collaborator
Collaborator

Oh...I have found the problem.

 

I have developped this script on the Classic User Interface and tested also on the Modern User Interface few months ago. We are on the CUI because some features very used by our company are not in the MUI.

 

Today, when I test the script on the Modern User, everything is working fine. Why it has changed on the Classic???? It is not funny !!!!!!! How is it possible to certify our PLM configuration if it is moving all the time???

0 Likes
Message 4 of 5

giliar.defriesperez
Autodesk
Autodesk
Accepted solution

Just closing the loop here for visibility of others, a fix for this issue was released yesterday, 2021-05-25.

 

Thanks,

 

Giliar


Giliar de Fries Perez
Sr. Product Owner
Fusion 360® Manage
Autodesk Canada Co.
0 Likes
Message 5 of 5

PLM-Sylvain.Bailly
Collaborator
Collaborator

Yes, now it is working well.

Thank you very much @giliar.defriesperez and the Autodesk support

0 Likes