
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 02:04 AM
Hi All,
I have used this script :
ServiceDegradation
{"name":"symptoms","value":{},"valueType":"string","@type":"symptoms"}
ServiceDegradation
What I want to understand is that why am I getting "{}" inside "value" of "obj" and not "ServiceDegradation" which is the proper output that I should get. Whereas if you see that if I try to use gs.info() then I am getting the proper value from the function that is "ServiceDegradation". Please note that I tried using JSON.stringify() as well but I am still getting the same thing ,i.e. {} inside value
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 02:09 AM
Hello @Community Alums
What type of data you are returning from the script include at
var result=new test().getSymptoms(gr.incident.parent.u_symptom.getDisplayValue())
try returning string from the script include or modify the above statement as
var result=new test().getSymptoms(gr.incident.parent.u_symptom.getDisplayValue()) + "";
Thank you,
Ali
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 02:09 AM
Hello @Community Alums
What type of data you are returning from the script include at
var result=new test().getSymptoms(gr.incident.parent.u_symptom.getDisplayValue())
try returning string from the script include or modify the above statement as
var result=new test().getSymptoms(gr.incident.parent.u_symptom.getDisplayValue()) + "";
Thank you,
Ali
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 02:58 AM
Hi @Ahmmed Ali ,
var result=new test().getSymptoms(gr.incident.parent.u_symptom.getDisplayValue()) + "";
The above line gave the proper result.
Thanks,
Hrithik Nirupam