case state is not update as per state in templates associatedDescriptionThe 'state' field may not be set from an HR Template when creating a case from the Create New Case / Case Creation page with the 'state' field not on the form.Steps to Reproduce Create or update a template mapped to HR service, and have the state as 'Ready' or 'Work in Progress'.Navigate to the 'Create New Case' module to create a new caseSelect the HR Service with the mapped template edited in Step 1.Ensure 'state' field is not on the form.Fill out the fields and click the 'Create Case' button.Notice that the state of the case is still in the 'Draft' state.WorkaroundNote: The below workaround is based on OOB code. Also, you might not get the latest version of the files if you upgrade later so modify at your discretion. 1. Modify record 'sys_ws_operation_45ac3385eb840300a9e7e26ac106fe75' to replace: -- // Apply template to record to set correct values -- new sn_hr_core.hr_TemplateUtils().applyBefore(template, tableGr); with ++ // Apply template to record to set correct values, and use overwrite parameter to ensure default values are overwritten by template ++ new sn_hr_core.hr_TemplateUtils().applyBefore(template, tableGr, true); 2. Modify record 'sys_script_include_687d7d8deb6f3200a9e7e26ac106fee0' to replace: -- // Call applyBefore now so that fields with default values are still set from the template -- if (template) -- new sn_hr_core.hr_TemplateUtils().applyBefore(template, newTaskGr); with ++ // Call applyBefore now so that fields with default values are overwritten by template, but user changes overwrite template still ++ if (template) ++ new sn_hr_core.hr_TemplateUtils().applyBefore(template, newTaskGr, true); and move it to before lines: // Set all input fields for (var key in fields) { var ele = newTaskGr.getElement(key);Related Problem: PRB1413700