Message 1 of 16
Not applicable
01-05-2013
05:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
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;
item.milestones[0].setWorkflowState('[99] Cancelled');
The Wikihelp states the following;
Methods on the Milestones Array
milestones.setWorkflowState("SHORT_NAME")
Method to set the workflow state associated with the milestone (milestones.workflowState). The "SHORT_NAME" parameter takes the value for the milestones.workflowState.shortName property.
Can you please let me know what I'm doing wrong?
Thanks,
David.
Solved! Go to Solution.