Add specific variables to Incident Description?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2022 01:40 AM
Hi All,
I have 2 variables on the incident for via the portal.
What I would like is the variables question and answer to be placed in the backend incident description field underneath the actual incident description but only if the variables have been answered.
I have the below 2 lines within the record producer, can I place something here?
current.short_description = producer.summary;
current.description = producer.comments;
I've achieved something similar with a business rule, but these brings over all variables and removes the producer.comments.
Any help would be much appreciated.
Thanks!
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2022 02:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2022 03:31 AM
Hi there,
I would like the variable question and answer to be in the incident description field.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 09:47 PM
Hi Alex,
So your description field should look like
Question 1 : Answer 1
Question 2: Answer 2
Please confirm.
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2022 02:25 AM
Hi,
use IF condition to check
if(producer.summary)
current.short_description = producer.summary;
if(producer.comments)
current.description = producer.comments;
If you are talking about showing the variables if those have value then use onLoad catalog client script which applies on Target Record
Check if value is present; if not then use setDisplay() to hide those.
regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader