- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2024 03:33 AM
Hello community,
On the sys_ui_title table I have a script (shown below) and it worked just fine. And suddenly it stopped working.
Same is on DEV and TEST instance. I did not do any changes on TEST so I really don't think I did anything wrong and that is is my fault.
I have no idea what happened and even how to fix that.
I've tried multiple ways but with no success ...
This is how it looked:
and this is how it looks now:
Exactly the same script.
This is my Script:answer =
"<b>Control Description:</b> " + current.description + "<br>" +
"<b>Additional Information:</b> " + current.additional_information + "<br>";
//code to fetch citation names and documents from sn_compliance_citation table
var citationGR = new GlideRecord('sn_compliance_m2m_statement_citation');
citationGR.addQuery('sn_compliance_policy_statement', current.content);
citationGR.query();
var citations = "";
while (citationGR.next()) {
var citationReference = citationGR.sn_compliance_citation; // Get the reference to the sn_compliance_citation record
// Now retrieve the actual citation name and document from the sn_compliance_citation table
var citationNameGR = new GlideRecord('sn_compliance_citation');
if (citationNameGR.get(citationReference)) {
citations += "<b>Authority Document:</b> " + citationNameGR.document.getDisplayValue() + "<br>" +
"<b>Related Citation:</b> " + citationNameGR.name + "<br>"; // Bold the 'document' and 'name' fields
}
}
// Append the fetched authority documents and citation names to the answer
answer += citations;
Would you know, what might be the issue here and maily, how to adjuste my script to show the Additional Information, Control Description, Authority Documents and Citations each on a new line?
Thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2024 05:30 AM
Workaround provided and works just fine!
Just tested. All you need to do is to import the provided XML file into the [sys_ui_macro] table in the Global scope.
Then this will be captured as a customer update so you can easily commit to the higher instances.
SN Knowledge article here:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1704997
Workaround
This issue is under review. To receive notifications when more information is available, subscribe to this Known Error article by clicking the Subscribe button at the top right of the article. The problem has been resolved in Xanadu. If you can, please upgrade your instance to any Xanadu Patch for a permanent fix.
If you are unable to upgrade, please follow the workaround provided below.
Workaround:
Import the sys_ui_macro_ed05c4cb43111210135d9c18cab8f231.xml attached to the KB.
Note: Please note that applying the Workaround is treated as a customization and the corresponding record (Name: sys_ui_macro_ed05c4cb43111210135d9c18cab8f231) is created in the Customer Update [sys_update_xml] table where the Replace on upgrade field is set to false. Go to the table sys_update_xml, search for 'asmt_question_category_label' on the 'Target name' column and set the record's 'Replace on upgrade' field to true. Or you can refer to KB0998209 for more details on how to manage the workarounds after the instance upgrade.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2024 01:52 AM
Hello there,
Did you find a solution for this? I'm experiencing a similar issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2024 01:57 AM
Hello Birhanu,
no, not yet. We created a Case fpr SN.
These are their latest responses:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2024 08:46 AM
Thanks Marketa! This is helpful! I'll create a case and follow up with ServiceNow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2024 12:04 AM
Hello,
We face the same issue. For information, a colleague tested a xanadu patch1 upgrade and it solve the issue.
We also opened an incident on Support as Xanadu upgrade is not planned yet.
Regards,