- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 07:37 AM
I am trying to create tags for HR Services but they re not getting captured in the update set? Is there any way to add them in update set as due to configuration changes in different instances I am trying to avoid them moving through xmls.
Also, is there any way to automatically the services so that when creating cases or after the cases it gets reflected with the particular tag?
Thanks in advance!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 07:46 AM
Hi,
Tags are individual items and they are not supposed to be moved via change control.
However you can capture them as an admin like below
Force to Update set
There are still situations were we occasionally need to capture few things in update set.
If you need to capture something in an update set, that doesn't get captured automatically, please don't add the attribute explained above , instead you can use the method below to do so.
- Create an update set (that you want to capture data) and make it your current update set
- Navigate to scripts - background
- Loop through the records you want to capture in a glide record query and pass the glide record obect in teh function below
var gum = new GlideUpdateManager2(); gum.saveRecord(<glide record object to record>);
- Validate your update set
For EG, if I want to capture the incidents with number INC0000002, INC0000003 & INC0000004 in my current update set. I'll follow step 1 and 2 above and run the script below in background script
var gr = new GlideRecord("incident");
gr.addEncodedQuery("numberININC0000002,INC0000003,INC0000004");
gr.query()
while(gr.next())
{
var gum = new GlideUpdateManager2();
gum.saveRecord(gr);
}
Update the script with right table and encoded Query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 07:46 AM
Hi,
Tags are individual items and they are not supposed to be moved via change control.
However you can capture them as an admin like below
Force to Update set
There are still situations were we occasionally need to capture few things in update set.
If you need to capture something in an update set, that doesn't get captured automatically, please don't add the attribute explained above , instead you can use the method below to do so.
- Create an update set (that you want to capture data) and make it your current update set
- Navigate to scripts - background
- Loop through the records you want to capture in a glide record query and pass the glide record obect in teh function below
var gum = new GlideUpdateManager2(); gum.saveRecord(<glide record object to record>);
- Validate your update set
For EG, if I want to capture the incidents with number INC0000002, INC0000003 & INC0000004 in my current update set. I'll follow step 1 and 2 above and run the script below in background script
var gr = new GlideRecord("incident");
gr.addEncodedQuery("numberININC0000002,INC0000003,INC0000004");
gr.query()
while(gr.next())
{
var gum = new GlideUpdateManager2();
gum.saveRecord(gr);
}
Update the script with right table and encoded Query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 08:23 AM
Hi Anurag,
thanks for the response, i will try this.
Is there any way to automatically add the tags to the service and when anyone is raising the case it should be highlighted that this service is tagged with particular tag?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 08:35 AM
You will need to make a change on the table level but I would really not recommend it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 12:27 AM
Hi Anurag,
thanks for the response. I was thinking if there is any way to populate the tags on hr agent workspace's list view when someone selected the service where we have added the tags on the service table list view? Attaching screenshot for reference:-
Tags on the service table
tags on the hr agent workspace view
could you please suggest?