- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 11-05-2020 02:43 PM
Hello,
I just wanted to share with the community a way to make your ServiceNow instance's release and patch information available to all of your users. I tried finding this solution on the community but was unable to find it in my search results. This is the main reason I am posting this here. I hope it is found useful.
WHAT IT DOES
Do you want this sort of feature available to all of your users?
You could use a variety of terminologies, such as:
- New York Release (Patch 10)
- New York Release
- New York (Patch 10)
- New York
- ServiceNow Home Page (New York)
- ServiceNow Home Page (New York Release)
- Home Page (New York)
- Home Page (New York Release)
- etc
You can use your imagination to come up with your own and then modify the below scripts to conform to your vision.
HOW IT'S DONE
You can accomplish this perpetually, keeping the value dynamic and up to date even after updates, with the following scheduled job:
| Name: | Update Glide Banner Image Title Property |
| Active: | TRUE |
| Run: | Daily |
| Time: | 12:00:00 AM |
| Application: | Global |
| Run this script: | var release = gs.getProperty('com.glide.embedded_help.version'); var patch = ''; if (gs.getProperty('glide.war').includes('patch')) {patch = ' (Patch ' + gs.getProperty('glide.war').split('patch')[1].split('-',1) + ')';} gs.setProperty('glide.banner.image.title', release + ' Release' + patch); |
HOW IT WORKS
First, the above gets these two system properties:
1. com.glide.embedded_help.version
- Ex: "New York"
2. glide.war
- Ex: "glide-newyork-06-26-2019__patch10-07-30-2020_08-05-2020_0901.zip"
Second, it splits glide.war and returns everything after "patch", then splits that at the first "-" and discards the rest.
(This second step should remain functioning as long as 1) "patch" is in the value, 2) the patch# is immediately after it, and 3) a dash is immediately after that. Please don't change this naming convention ServiceNow, haha.)
Finally, it concatenates the two together to produce a final result such as "New York Release (Patch 10)"!
I hope that helps! Please let me know if it needs any tweaks or if you know a better source for the patch number. Thanks!
Kind Regards,
Joseph
- 1,219 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Thanks for this Joseph.
Please can you confirm what is the easiest way to revert should we want/need to?
It would be great to trigger this on upgrade only but I guess there is no easy way to specify that.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
You're welcome djs43. Sure, here are the default settings of the glide.banner.image.title system property:
- Value: "ServiceNow Home Page"
- Description: "Banner mouse-over text" (my script preserves rather than changes this)
Other than putting those back to what they were, you'd just deactivate or delete my scheduled job, and everything should be back as it was at that point.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Tried this solution for title changes in #Now Experience UI to show the version and patch details. But it was not reflecting so as a solution I had to replace 'glide.banner.image.title' property to 'glide.product.description' in the script which will show the release details as product description instead of title
Not sure if the 'glide.banner.image.title' changes are getting reflected in the banner title for Now Experience UI. But thought of mentioning this here so this is useful for others trying to figure out same.
Thanks!