- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 04:08 AM
I want to publish "planned_end_time" on service portal incident.
Solved! Go to Solution.
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 04:23 AM
HI Hima,
Where do you want to display it in the portal?
Do you need it inline to the incident details on incident form?
Thanks
Gaurav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 05:23 AM
how can we pass the dynamic incident number ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 05:28 AM
var gr = $sp.getRecord();
data.sys_id = gr.getUniqueValue();
use this in Server side code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 05:31 AM
Please Make below changes in the widget and you will see the result.
Server-side
var breachTime='';
var grSLA= new GlideRecord('task_sla');
grSLA.addQuery('task',gr.getUniqueValue());
grSLA.setLimit(1);
grSLA.query();
while(grSLA.next()){
breachTime=grSLA.getDisplayValue('planned_end_time');
}
data.plannedTime=breachTime;
HTML :
<div class="col-md-6 col-sm-12 col-xs-6 m-b break-word">
<label class="m-n">Planned End Time</label>
<div>{{data.plannedTime}}</div>
</div>
Please mark correct/helpful based on the impact of the response.
Thanks
Gaurav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 07:23 AM
Gaurav,
Issue got fixed . Thanks for your quick help .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 07:28 AM
Hi Hima,
Please mark the response correct
Thanks
Gaurav