-
Notifications
You must be signed in to change notification settings - Fork 0
/
1_Download_Service_Now_files.sh
executable file
·48 lines (27 loc) · 3.25 KB
/
1_Download_Service_Now_files.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
if [ `ps -ef|grep firefox|wc -l` -gt 1 ]
then
echo "Is Dispatch Console open in firefox? [Yy/N]"
read answer
if [ "$answer" != "${answer#[Yy]}" ]
then
echo "Opening Service Now"
sleep 2
firefox --new-window "https://ibmimiap.service-now.com/nav_to.do?uri=%2Fincident_list.do%3Fsysparm_query%3Dassignment_group%253Djavascript:getMyGroups()%255EstateIN110%252C111%252C112%255EORresolved_atONYesterday@javascript:gs.beginningOfYesterday()@javascript:gs.endOfYesterday()%255EORresolved_atONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()%26sysparm_first_row%3D1%26sysparm_view%3D"
sleep 6
firefox "https://ibmimieu.service-now.com/nav_to.do?uri=%2Fincident_list.do%3Fsysparm_query%3Dassignment_group%253Djavascript:getMyGroups()%255EstateIN110%252C111%252C112%255EORresolved_atONYesterday@javascript:gs.beginningOfYesterday()@javascript:gs.endOfYesterday()%255EORresolved_atONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()%26sysparm_first_row%3D1%26sysparm_view%3D"
sleep 6
firefox "https://ibmimina.service-now.com/nav_to.do?uri=%2Fincident_list.do%3Fsysparm_query%3Dassignment_group%253Djavascript:getMyGroups()%255EstateIN110%252C111%252C112%255EORresolved_atONYesterday@javascript:gs.beginningOfYesterday()@javascript:gs.endOfYesterday()%255EORresolved_atONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()%26sysparm_first_row%3D1%26sysparm_view%3D" \
sleep 6
firefox "https://ibmimiap.service-now.com/nav_to.do?uri=%2Fchange_request_list.do%3Fsysparm_query%3Dassignment_group%253D7d85e341dbd7cb401eeb347d7c961985%255EORassignment_group%253D8285e341dbd7cb401eeb347d7c9619f5%255Eend_dateONThis%2520week@javascript:gs.beginningOfThisWeek()@javascript:gs.endOfThisWeek()%255EORstart_dateONThis%2520week@javascript:gs.beginningOfThisWeek()@javascript:gs.endOfThisWeek()%255EORstart_dateONNext%2520week@javascript:gs.beginningOfNextWeek()@javascript:gs.endOfNextWeek()%26sysparm_first_row%3D1%26sysparm_view%3D" \
sleep 6
firefox "https://ibmimieu.service-now.com/nav_to.do?uri=%2Fchange_request_list.do%3Fsysparm_query%3Dassignment_group%253D7d85e341dbd7cb401eeb347d7c961985%255EORassignment_group%253D8285e341dbd7cb401eeb347d7c9619f5%255Eend_dateONThis%2520week@javascript:gs.beginningOfThisWeek()@javascript:gs.endOfThisWeek()%255EORstart_dateONThis%2520week@javascript:gs.beginningOfThisWeek()@javascript:gs.endOfThisWeek()%255EORstart_dateONNext%2520week@javascript:gs.beginningOfNextWeek()@javascript:gs.endOfNextWeek()%26sysparm_first_row%3D1%26sysparm_view%3D" \
sleep 6
firefox "https://ibmimina.service-now.com/nav_to.do?uri=%2Fchange_request_list.do%3Fsysparm_query%3Dassignment_group%253D7d85e341dbd7cb401eeb347d7c961985%255EORassignment_group%253D8285e341dbd7cb401eeb347d7c9619f5%255Eend_dateONThis%2520week@javascript:gs.beginningOfThisWeek()@javascript:gs.endOfThisWeek()%255EORstart_dateONThis%2520week@javascript:gs.beginningOfThisWeek()@javascript:gs.endOfThisWeek()%255EORstart_dateONNext%2520week@javascript:gs.beginningOfNextWeek()@javascript:gs.endOfNextWeek()%26sysparm_first_row%3D1%26sysparm_view%3D"
else
echo "Complete Single sign on first (Keep Dispatch Console running) and rerun this script"
sleep 2
echo "Opening Dispatch Console"
sleep 2
firefox "https://ibmimiap.service-now.com/sp?id=imi_dispatch_console"
fi
fi