How to Display Short description of ticket in a Survey via Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2019 08:36 PM
Hello,
Is it possible to display the ticket's Short description in the Survey next to the ticket number like Incident? If yes, where do i edit it?
I would also like to display it here when the user clicks on one of the survey:
The after the user clicks 'Get Started' it will redirect to the survey form and I would also like it to display there:
Thank you.
Regards,
Raphael

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2019 02:35 PM
Hi Raphael,
It's hard to guide you without seeing these surveys. I would think the easiest method would be to find where the INC000000 is being set from and edit it there. For example on an Out-of-the-Box survey, it's being set from the Description field on the [asmt_metric_type] table.
See if there's a way you can change how that INC000000 get sets and add the Short Description there. That would solve all of your problems. Otherwise you're going to have to Clone all of the Out-of-the-Box widgets and replace them on the Survey SP pages and make the edits in the widget.
For example, on the My Surveys widget, you'd have to edit that forEach loop and add the Short Description there using a GlideRecord to pull it from the Incident. But you'll have to use conditional logic, so all of this only applies to Incidents. Could work, just might be clunky, or you might get weird bugs.
If my answer helped you, or solved your issue, please mark it as correct / helpful

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2019 02:39 AM
Hello,
I think the INC number is being declared in the SPSurveyAPI script include and it is being called in the 'My_surveys' widget but i don't know how to get the short description of that specific ticket since I don't know how to declare it in the SPSurveyAPI script include.
I tried adding another variable that is declared in the SPSurveyAPI but its the same as trigger_description, do you have any idea how to call the short description of the ticket?
Regards,
Raphael

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2019 12:30 PM
Howdy,
You can control what content is displayed where my red arrow is pointing by changing the sys_ui_title table. If your incident table does not have a 'field' set on this table, the take_survey widget will display the incident number instead. Simply set the field on the sys_ui_title table for incident to the short description field and voila! See my second screenshot for how this table typically looks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2025 08:59 AM
I looked for a solution for a long time, this is what solved it, this is exactly what you have to do, thank you very much.