Tags not capturing in update set

Vaishali 11
Tera Guru

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!!

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

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.

  1. Create an update set (that you want to capture data) and make it your current update set
  2. Navigate to scripts - background
  3.  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>);
  4. 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

-Anurag

View solution in original post

8 REPLIES 8

Anurag Tripathi
Mega Patron
Mega Patron

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.

  1. Create an update set (that you want to capture data) and make it your current update set
  2. Navigate to scripts - background
  3.  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>);
  4. 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

-Anurag

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?

You will need to make a change on the table level but I would really not recommend it.

-Anurag

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

Vaishali11_0-1729063439052.png

tags on the hr agent workspace view

Vaishali11_1-1729063530291.png

could you please suggest?