Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Short Descp should show in My requests

nameisnani
Mega Sage

Hi Team , 

 

We have requirement that , as u can see in the below screenshot , In the Short Description field what ever i have given .  

 

SunilKumarPadh_0-1678118143950.png

 

When i click on ' My requests ' tab , currently that is showing with catalog name as u can see in the below image , Instead of catalog name , [ The Short Descp which we have entered in form that should show here ] .

SunilKumarPadh_1-1678118251467.png

 

 

Please provide me steps to achieve this 

 

@Ankur Bawiskar 

@BharathChintala 

@OlaN 

@Community Alums 

@SatyakiBose 

@Community Alums 

Thanks In adavnce

 

1 ACCEPTED SOLUTION

OlaN
Giga Sage
Giga Sage

Hi,

If I understand your requirement correct, it is to show the short description of the RITM on the page that shows REQ.

That does not make sense, because a REQ could have multiple items requested, and in that scenario, which short description should then be displayed?

OOB it shows either the name of the item requested, if only 1 item is connected to that REQ, otherwise it shows something like "2 requested items" and so on.

Please elaborate a bit further in your requirement.

View solution in original post

6 REPLIES 6

Community Alums
Not applicable

Hello @nameisnani ,

Have U did any changes in the OOTB 'My Requests' Widget?

if yes, u can change it here :

Khushbookabra_0-1678129755149.png

 

As OOTB it will take value from "{{::item.display_field}}"  which is as short_description if u check the condition in server side code.

 

Thanks!

@Community Alums 

Thanks for the response

 

From where I can get this tab, which u have shared and what changes i need to do Please tell me . 

 

Please provide me steps for my better understanding

 

I have not change any OOTB function.

Community Alums
Not applicable

Hello @nameisnani ,

 

This is the "My request" widget. For this view click "ctrl + right click" then click on "edit in widget editor" and  as @OlaN mentioned the OOTB functionality "it shows either the name of the item requested, if only 1 item is connected to that REQ, otherwise it shows something like "2 requested items" and so on."  If u want customization then clone this widget and write ur own code on server side.

 

Thanks!

OlaN
Giga Sage
Giga Sage

Hi,

If I understand your requirement correct, it is to show the short description of the RITM on the page that shows REQ.

That does not make sense, because a REQ could have multiple items requested, and in that scenario, which short description should then be displayed?

OOB it shows either the name of the item requested, if only 1 item is connected to that REQ, otherwise it shows something like "2 requested items" and so on.

Please elaborate a bit further in your requirement.