How can we get Request details from Requested Item?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2018 05:08 AM
Hi
Need a code : Request details associated with Requested Items.
Number
SLA Due
Opened
Thanks in advance,
Keyur

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2018 05:13 AM
Hi,
If using client script you can use g_form.getReference('request',callback function).
If using Business rule you can dot walk to request field on Requested item form.
Thanks,
Jaspal Singh
Hit Helpful or Correct on the impact of response.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2018 01:52 AM
Hi Jaspal,
Thanks for your reply.
I am looking for mail script.
to send notification to User with Request Details.
But I am configuring it on sc_req_item table.
Request: ${URI_REF}
Item Name: ${cat_item.name} has been closed
Description: ${mail_script:request.var_req_description}
Additional comments: ${comments}
THis is my code. I want one more mail script with Request Details.
- Link to the request
- Request number
- Sla due
- When it was opened
Could you please help me out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2018 05:08 AM
hi,
you can use anchor tags to embed the URI of request by adding the lines:
var str='<a href="sc_request.do?sys_id=' + current.request + '"> ' + current.request.number+ '</a>';
use the variable accordingly
- Request number-current.request.getDisplayValue();
- Sla due-current.request.sla_due.getDisplayValue();
- When it was opened-current.request.opened_at.getDisplayValue();
all assuming the the notification is on sc_req_item table.