Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How can we add field from other tables in "Ticket Fields" widget?

Narayan K
Tera Expert

Hi there,

 

I want to add field from "task_sla" table to "Ticket Fields" widget.

NarayanK_0-1756886673423.png

 

for example " Business Time left".

 

Thanks!

 

1 ACCEPTED SOLUTION

@Dr Atul G- LNG 

I agree that SLA information is not necessary for end users on portal.

But the requirement is achievable and I was able to achieve that.

The link I shared simply tells the server side script which needs to be enhanced and would help person with developer skills to know what change and where change is required.

@Narayan K  I was able to show that, see below

Output:

AnkurBawiskar_1-1756894497761.png

 

AnkurBawiskar_0-1756894478762.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

12 REPLIES 12

Hi @Ankur Bawiskar , this article can be used to add new fields from same record. In my case I want to add field from another table.

 

is there any way to achieve it? or we can only add fields from same table only?

@Narayan K 

The link I shared is just a reference, yes you can add other fields from other table but as I mentioned you will have to perform GlideRecord and get the value

You will have to play with the Server Side Script

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Narayan K 

check my above response.

I was able to achieve and show business time left for the INC in Tickets Field widget.

You will have to play around in the server side and add the value in the JSON object using GlideRecord which then will be rendered by System automatically.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader