function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Abhinav Gupta 75Abhinav Gupta 75 

Closed milestones are also updating when we are updating the severity of a case

We recently got the issue that the closed milestones are also updating when we are changing the severity of the case. But we want only the not completed milestones should  be update. Can someone help us with the workaround for this.
AnkaiahAnkaiah (Salesforce Developers) 
Hi Abhinav,

Are you upadating through code. If yes then check the condition when are updating and exculde the closed milestone related cases.

Thanks!!
Rakesh kumar 708Rakesh kumar 708
It sounds like you are using a system that allows you to assign milestones to cases, and you want to update the severity of a case without affecting any closed milestones. Here are a few potential solutions that you might consider:

Modify your system to exclude closed milestones from updates: Depending on the system you are using and your level of access, you may be able to modify the system's behavior so that it only updates open milestones when the severity of a case is changed.

Manually update the severity of the case and milestones: You could update the severity of the case manually, and then review the milestones associated with the case and update their status as needed. This approach would allow you to selectively update milestones that are still open, while leaving closed milestones unchanged.

Use a separate field to track the severity of milestones: Instead of relying on the severity of the case to determine the severity of a milestone, you could use a separate field to track the severity of each milestone. This would allow you to update the severity of a case without affecting the milestones associated with it.

Ultimately, the best solution will depend on the specifics of your system and the resources you have available.
 

Some useful Greetings and Quotes for Everyone 🤗

 

💛Good Morning Image in Hindi 

💛Happy new year 2023 images and Greetings

🥰 Romantic Good Night Images

😍 Good Night Images

🌆 Good Evening Images

🌼 Good Afternoon Images

🌷 Good Morning Images

🎄 Free Jesus Christmas Images

🔴Not to-do list for Students

🔴DO NOT LIST—On Finance and Investment

🔴DO NOT LIST–From the Book of Bible

🔴NOT TO DO LIST—Journals!

🔴NOT TO DO LIST—Christmas Special

🔴Bible Quotes in Malayalam

🔴Bible quotes in Telugu

💚4 Advantages of Sending Good-Night Images and Images

💚2 Secret Greeting images to impress friends, family, and lover

💚Why we must send good morning images to friends and loved ones!


 
Abhinav Gupta 75Abhinav Gupta 75
Hi Rakesh 
As you told if we create another field and rely on that instead of the severity then also the issue will be same. We want the severity of the milestone to be changed but only for the open milestones not for the closed ones. We have tried to update the milestone criteria but we are not getting the CaseMilestone object in the critera.

Thanks