This blog discusses the steps to add a new status and a dropdown menu for the new status in change management. The concept can be applied to other objects such as work orders.
Let's use the following use case for demo:
Step 1. Add a Custom Status "On-Hold"
The first step is to add a new status "On-Hold" to change.
Step 2. Add "On-Hold" to Change Status Graph
"On-Hold" status needs to be linked into the change status graph. This is done by adding the following lines for "statusMap" to Calem_Home/client/conf/CmConf.custom.js.
//Add a transition from "moc_new" to "moc_onhold" CmConf['moc_conf']['statusMap']['moc_new']= {next: {moc_pre_reviewed: true, moc_canceled: true, moc_disapproved: true, moc_new_rfi: true, moc_new_rs: true, moc_onhold: true}}; //Add a transition from "moc_onhold" to "moc_new" CmConf['moc_conf']['statusMap']['moc_onhold']= {next: {moc_new: true}};
Once this is done, you may log out and log in. Go to a change of "New" status. Edit the change, the status dropdowns include "On-Hold".
Step 3. Add "On-Hold" to "More" Dropdown
Additional configuration is necessary to show "On-Hold" as a dropdown from "More" of the change screen. This is done by adding the following lines for "statusMcMap" to Calem_Home/client/conf/CmConf.custom.js.
//Add statusMcMap from moc_new to moc_onhold CmConf['moc_conf']['statusMcMap']['moc_new']= {next: {moc_pre_reviewed: true, moc_new_rfi: true, moc_canceled: true, moc_disapproved: true, moc_onhold: true}}; //Add statusMcMap from moc_onhold to moc_new CmConf['moc_conf']['statusMcMap']['moc_onhold']= {next: {moc_new: true}};
That's all. You may log out and log in. Go to a change of "New" status. The "More" dropdowns include "On-Hold".
Additional Resources
By accepting you will be accessing a service provided by a third-party external to https://calemeam.com/