Demand Assessment is not created after upgrading to Quebec.


Description

Demand Assessment is not getting created for the Non-admin users.

Default answers are not displayed in the assessment instance questions.

Steps to Reproduce

Demand Assessment is not getting created for the Non-admin users.

1. Login as some non-admin user
2. Create a new Demand - enter only required information and Save
3. Enter Additional Required information - Submit demand
4. Enter Assessment Data -- Click Screen
5. Page refreshes and assessment results DID NOT appear
>>> If the assessment results appear, then proceed with the following steps:
6. Make a change to assessment data
7. Click save
8. Click on "Recalculate assessment score" message comes "Scores are updated".
9. Ensure assessment results updated. It doesn't update consistently.



Default answers are not displayed in the assessment instance questions.

   Perform the steps with a user that has sn_complicance.user role
1. Navigate to Policy and Compliance > All Controls > Select a record with state set to 'Monitor'
2. Click the 'Attest' UI action
3. Open the new assessment instance record through the related list of the control. Default answers are not displayed on the assessment instance questions related list.


Workaround

In the business rule script(Business Rule Name-"Restrict HR results for non-HR users" Sys_id 075009bd772420102e2693df59106144), Replace
current.addQuery('instance.metric_type.sys_scope', '!=', 'd4ac3fff5b311200a4656ede91f91af2');
with
current.addNullQuery('instance').addOrCondition('instance.metric_type.sys_scope', '!=', 'd4ac3fff5b311200a4656ede91f91af2');


Related Problem: PRB1482415