<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change Milestone State using scripting in Fusion Manage Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3750068#M7886</link>
    <description>&lt;P&gt;Thanks for the help Joe (and your patience &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great service.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2013 14:12:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-01-10T14:12:40Z</dc:date>
    <item>
      <title>Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3746602#M7872</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to change the workflow state referenced by a milestone via scripting. The WikiHelp seems to suggest this is possible but I have not been able to get it to work. My script is as follows;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;item.milestones[0].setWorkflowState('[99] Cancelled');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Wikihelp states the following;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Methods on the Milestones Array&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;milestones.setWorkflowState("SHORT_NAME") &lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="ad-import-definition"&gt;Method to set the workflow state associated with the milestone (&lt;SPAN&gt;milestones.workflowState&lt;/SPAN&gt;). The "&lt;SPAN&gt;SHORT_NAME&lt;/SPAN&gt;" parameter takes the value for the &lt;SPAN&gt;milestones.workflowState.shortName&lt;/SPAN&gt; property.&lt;/DIV&gt;&lt;DIV class="ad-import-definition"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="ad-import-definition"&gt;Can you please let me know what I'm doing wrong?&lt;/DIV&gt;&lt;DIV class="ad-import-definition"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="ad-import-definition"&gt;Thanks,&lt;/DIV&gt;&lt;DIV class="ad-import-definition"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="ad-import-definition"&gt;David.&lt;/DIV&gt;</description>
      <pubDate>Sat, 05 Jan 2013 13:29:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3746602#M7872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-05T13:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3746671#M7873</link>
      <description>&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible to change a milstone date after it has been created using scripting?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2013 22:07:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3746671#M7873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-05T22:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747220#M7874</link>
      <description>&lt;P&gt;David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Workflow states dictate milestones, not the other way around. You can have a workflow state create or adjust a milestone, or look at a milestone for a condition of validation, but you cannot have a milestone adjust a workflow state.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also yes you can adjust a milestone date via scripting after the milestone is created, if you know the name of the milestone your trying to affect.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 15:07:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747220#M7874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-07T15:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747258#M7875</link>
      <description>&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. So if I understand you correctly it is not possible to change the workflow state asscoiated to an existing milestone via scripting?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 15:29:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747258#M7875</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-07T15:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747282#M7876</link>
      <description>&lt;P&gt;David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There isn’t a way for a script to start based on when a milestone changes. Scripts only work on workflow changes or item creation / change.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 15:38:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747282#M7876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-07T15:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747288#M7877</link>
      <description>&lt;P&gt;Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think we have our wires crossed. The script is executed by a workspace behaviour (edit). All I want to do is change the workflow state referenced by the milestone at that point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does that clear things up?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 15:41:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747288#M7877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-07T15:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747313#M7878</link>
      <description>&lt;P&gt;David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying to change the workflow step based on a milestone. Then you are looking at an ‘if’ or 'case' statement and using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; item.performWorkflowTransition(transID, 'comments')&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 16:06:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747313#M7878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-07T16:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747345#M7879</link>
      <description>&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think we still have our wires crossed &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll PM you to discuss further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 16:32:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747345#M7879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-07T16:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747611#M7880</link>
      <description>&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to illustrate what I am trying to do on the attached document. Please let me know if this sheds any light.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 20:49:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3747611#M7880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-07T20:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3748112#M7881</link>
      <description>&lt;P&gt;David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on what your showing all you can do at that point is set the “Closed” milestone to completed at 100% and create a new milestone for “Cancel”.&lt;/P&gt;
&lt;P&gt;You cannot change one milestone for another or delete and replace the milestone by scripting.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 14:28:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3748112#M7881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-08T14:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3748149#M7882</link>
      <description>&lt;P&gt;Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the feedback. I'm still a little confused. The WikiHelp suggests that this functionality should be available. The following is stated in the scripting reference page (link below). Have I misunderstood?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Methods on the Milestones Array&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;milestones.setWorkflowState("SHORT_NAME") &lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="ad-import-definition"&gt;Method to set the workflow state associated with the milestone (&lt;SPAN&gt;milestones.workflowState&lt;/SPAN&gt;). The "&lt;SPAN&gt;SHORT_NAME&lt;/SPAN&gt;" parameter takes the value for the &lt;SPAN&gt;milestones.workflowState.shortName&lt;/SPAN&gt; property.&lt;/DIV&gt;&lt;DIV class="ad-import-definition"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="ad-import-definition"&gt;&lt;A href="http://wikihelp.autodesk.com/PLM_360/enu/Help/Help/0086-Develope86/0087-Server-S87/0094-Scriptin94" target="_blank"&gt;http://wikihelp.autodesk.com/PLM_360/enu/Help/Help/0086-Develope86/0087-Server-S87/0094-Scriptin94&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class="ad-import-definition"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="ad-import-definition"&gt;Is this only available at milestone creation? If so then this clears things up.&lt;/DIV&gt;&lt;DIV class="ad-import-definition"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Jan 2013 14:55:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3748149#M7882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-08T14:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3748514#M7883</link>
      <description>&lt;P&gt;David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is available for creation or modification. Not for deletion or renaming.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 20:52:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3748514#M7883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-08T20:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3748559#M7884</link>
      <description>&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want tp be crystal clear about this incase I've misunderstood something;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A milestone has the following properties;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 Workflow State&lt;/P&gt;&lt;P&gt;2 Milestone event&lt;/P&gt;&lt;P&gt;3 Target Date&lt;/P&gt;&lt;P&gt;4 Status&lt;/P&gt;&lt;P&gt;5 Warning Days before&lt;/P&gt;&lt;P&gt;6 Workflow progress&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I understand you correctly the following statements are correct??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a&amp;gt; Properties 1 to 6 can be set on creation via a script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;b&amp;gt; Properties 2 to 6 can be edited via a script. Property 1 cannot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;c&amp;gt; A milestone cannot be deleted via scripting.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 21:36:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3748559#M7884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-08T21:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3748970#M7885</link>
      <description>&lt;P&gt;David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 13:28:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3748970#M7885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-09T13:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3750068#M7886</link>
      <description>&lt;P&gt;Thanks for the help Joe (and your patience &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great service.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 14:12:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3750068#M7886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-10T14:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change Milestone State using scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3750088#M7887</link>
      <description>&lt;P&gt;Glad I could help out &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 14:31:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/change-milestone-state-using-scripting/m-p/3750088#M7887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-10T14:31:38Z</dc:date>
    </item>
  </channel>
</rss>

