- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2016 01:30 AM
Hi,
I want the "work notes" - field to be the default view when viewing a ticket (instead of the "Additional Comments"- field showing), so it will look like this:
I found a record in the dictionary called "Work notes" on the task table, and tried setting this to default value "true". Then I get the desired result when viewing a ticket, but not when creating a new one. It then shows both the "Additional Comments" and the "Work notes"-field, and it says "true" in the "Work Notes"-field. I belive the original behavior is both of the fields showing like this, but of course not showing the "true" statement in the "Work notes"-field.
Anyone got an idea as to how I can default show the "work notes" (work notes = ticked) instead of the additional comments? It would be OK for both fields showing on a new ticket as well, but I would not want to see "true" in the work notes - field.
Thanks in advance!
Solved! Go to Solution.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2016 05:32 AM
Hi Ina,
Look what I found... Two user preferences that do what you want... you can make these a single field or expand them to show both. You can default to work notes too!
I just changed mine on incident and noted the changes in sys_user_preferences. If you want make those the default for people, just remove the user name and change the System field to true (checked) and insert&save the new record. It doesn't prevent people from changing it to the way they want (collapsed and comments first), but it gives you a default for noobs.
Let me know if you need more help or if that answers your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2016 08:57 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2016 09:07 AM
You don't set the preference to checked or unchecked, you set the glide.ui.incident.stream_input to the name of the field you want it to default to. It defaults to comments, I changed it to work_notes in the image above.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2016 09:39 AM
Got it, thanks. Is there any way to code that so that it cannot be changed?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2016 09:49 AM
You could try an ACL on the sys_user_preference table specific to that particular setting. Use a condition field for easy maintenance.
Example: Enable write access to that table/fields
Name | is not | glide.ui.incdient.stream_input
Docs: Access control rules
Docs: Contextual security
Security Best Practices - ServiceNow Wiki

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2016 08:43 AM
OK... I'm against a wall here. I have tried all manner of ACL with this, including your suggestion, and still the ACME Itil user is able to write a preference. I have included the 3 ACLs that I have in place for the table which includes the glide name for task, incident and the ability to show both work_notes and comments at the same time. Can you think of any reason why ACME Itil should be able to write to this record? I have verified the user does not have the 'admin' role. Thank you so much for your help!