Hi,
I have consecutive workflow states that are tied to the consecutive milestones, all to the "Enter" event. I want to add a transition that jumps from one workflow state to the previous to reverse the milestone from "Done" to "Awaiting". I do have the script the would recalculate for me all the due/target dates for milestones in "Awaiting" status.
I can pick the "milestone" that needs to be reset from transition.fromstate and then I am using the "status" attribute of milestone object like,
mstone.status = "Awaiting";
.
.
.
The println() shows the the script does goes to the right milestone and the statement above change the milestone status from "Done" to "Awaiting". However, on the milestones tab, it still shows the milestone as "Done" (green check)
I see that the undo button on the workflow does rollback the milestone so I should be able to achieve the same through custom script.
Any help is appreciated.
Thanks,
Abid