when state change in progress and state change in on hold then on hold reason should be added
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 02:33 AM
Hi Team,
I have a requirement like when state change in progress and state change is on hold then on hold reason will be added in work notes and also when state is in progress then it also added in work notes. and also want to print in state value name and on hold value name. If anyone know Please let us know .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 02:49 AM
Hi @sangitakumari,
Standard configuration out of the box provides this functionality - when the 'On hold' checkbox is set to true, the On Hold reason is mandatory. When saved, this comment is added to the work notes.
Can you check the Client Scripts and ensure the Out Of Box Client Script: Change Model: read only state On hold is active
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 03:59 AM
i checked when i saved on hold reason in comment is not added to the work notes. I try it through business rule as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 04:14 AM
try giving || (or) condition for on hold reason i have modified the code please give it a try,
if (current.state.toString() == '2') {
current.work_notes = "State changed to" + current.getDisplayValue('state');
} else if (current.state == '3') {
if (current.hold_reason == '3' || current.hold_reason == '4' || current.hold_reason == '5') {
current.work_notes = "State changed to" + current.getDisplayValue('state') + "and reason is" + current.getDispalyValue('hold_reason');
gs.log("work_notes chnage for state" + current.work_notes);
}
}
Please check and Mark Helpful and Correct if it really helps you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 04:23 AM
on hold reason is poupluating un define. when i am updating short description then work notes updated automatically.