Modify com.glideapp.servicecatalog_checkout_view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2012 10:55 AM
I was trying to modify the UI Page 'com.glideapp.servicecatalog_checkout_view'.
I am trying to add 'state' field which changes based on the 'stage' field from Workflow on the ticket. I am able to retrieve the value coming from the 'stage' field. But when I am trying to write an IF statement and comparing to the value, it is not working. It is in Jelly Scripting. Can anyone help be in the debug?
SEE THE SCREENSHOT BELOW
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2012 09:32 AM
Thanks a ton Jim..The explaination is very helpful 🙂 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2012 09:46 AM
Please remember to mark any questions as being "answered" to let people know a solution was found for the problem/issue/request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2012 11:20 AM
Hi Jim,
Can you please see the thread 'RITM workflow issue'
ANy guidance related to that would be a great help.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2015 09:31 AM
Hello There,
I am writing you in order to collect advice from you.
Here it is : I have developed two emails notification.
1 - One to send when the RITM contained into the Request has been rejected (the name of email is rejection Email).
2 - the second to send when the request have been 'Closed complete'. it is a survey email in order to notify the business.
If we have a Request with only 1 RITM if that RITM is rejected we want the rejection email to go out (mail 1). However we must also surpress the Request completed notification to the business so that they only get 1 email to say that the Request was Rejected.
The script below have been added into the advanced condition of the Email Notification :
var count = 0;
var reqItems = new GlideAggregate('sc_req_item');
reqItems.addQuery('request', current.sys_id);
reqItems.addAggregate('COUNT');
reqItems.query();
while (reqItems.next()) {
count = reqItems.getAggregate('COUNT');
}
if (count == 1 && current.approval != 'approved') {
answer = false;
} else {
answer = true;
}
The problem is the condition current.approval remains always to approved.
I am testing if there is only One RITMS ANd if the state is rejected, but I am stuck
if you have any help, I am more than interested.
Kind regards