Difference between revisions of "List Tickets ORDER BY Group"
m |
Agegeleruvy (Talk | contribs) |
||
| Line 1: | Line 1: | ||
| + | ---- | ||
| + | <div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;"> | ||
| + | ---- | ||
| + | =[http://elykogit.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]= | ||
| + | ---- | ||
| + | =[http://elykogit.co.cc CLICK HERE]= | ||
| + | ---- | ||
| + | </div> | ||
__NOTOC__ | __NOTOC__ | ||
[[Category:Customizations]] | [[Category:Customizations]] | ||
| Line 14: | Line 22: | ||
MODIFY FACTORY chg { | MODIFY FACTORY chg { | ||
STANDARD_LISTS { | STANDARD_LISTS { | ||
| − | SORT_BY | + | SORT_BY "group.last_name, chg_ref_num, status, open_date, priority"; |
}; | }; | ||
}; | }; | ||
| Line 21: | Line 29: | ||
MODIFY FACTORY cr { | MODIFY FACTORY cr { | ||
STANDARD_LISTS { | STANDARD_LISTS { | ||
| − | SORT_BY | + | SORT_BY "group.last_name, ref_num, status, open_date, priority"; |
}; | }; | ||
}; | }; | ||
| Line 28: | Line 36: | ||
1) Search for the following text in your list_chg.htmpl file | 1) Search for the following text in your list_chg.htmpl file | ||
| − | + | <pdm_macro name=lsStart> | |
| − | + | <pdm_macro name=lsWrite text="pdm_if \"@{list.sla_violation:0}\" != '0'"> | |
| − | 2) Just above the | + | 2) Just above the <pdm_macro name=lsStart> define the following |
var ref_num_style; | var ref_num_style; | ||
3) Now, Edit the pdm_macro column for Group to the following | 3) Now, Edit the pdm_macro column for Group to the following | ||
| − | + | <pdm_macro name=lsCol hdr="Group" attr=group link=yes> | |
'''Below is the customization to the list_cr.htmpl file''' | '''Below is the customization to the list_cr.htmpl file''' | ||
1) Search for the following in your list_cr.htmpl file | 1) Search for the following in your list_cr.htmpl file | ||
| − | + | <PDM_MACRO NAME=lsStart> | |
| − | 2) Just above the | + | 2) Just above the <pdm_macro name=lsStart> define the following |
var ref_num_style; | var ref_num_style; | ||
3) Now, Edit the pdm_macro column for Group to the following | 3) Now, Edit the pdm_macro column for Group to the following | ||
| − | + | <PDM_MACRO NAME=lsCol hdr=Group/Parent attr=group link=yes> | |
=== Step 3: Save Files and perform the following === | === Step 3: Save Files and perform the following === | ||
1) Run the pdm_webcache from the command prompt | 1) Run the pdm_webcache from the command prompt | ||
2) Stop and Start the Unicenter Service Desk Services. | 2) Stop and Start the Unicenter Service Desk Services. | ||
| − | 3) Look at your Analyst Login and expand the | + | 3) Look at your Analyst Login and expand the "All" scoreboard value under Incidents and Change Order to see if your tickets are sorted as per the Group |
| − | 4) Note : You first need to add the column | + | 4) Note : You first need to add the column "Group" if you did not have it earlier. |
Revision as of 03:28, 24 November 2010
To discuss or ask questions about this article, select the discussion tab above.
Overview
This article will help you sort your Incident, Change Order and Request List in Scoreboard.
Procedures
Step 1 : Create the script
A script is created as an .mod file and placed in the NX_ROOT/site/mods/majic directory. When the Service Desk service starts, the contents of the majic directory are processed and cached. You can use any naming scheme you like for your .spl file, but it is recommended that the file be preceded with a 'z' for easy identification as a custom file (eg zMyCompany.spl, zcr_scripts.spl, zMyScripts.spl).
Below is the mod file for Change Orders - I have named it to be zchgsort.mod MODIFY FACTORY chg { STANDARD_LISTS {
SORT_BY "group.last_name, chg_ref_num, status, open_date, priority";
}; };
Below is the mod file for Incidents - I have named it to be zinsort.mod MODIFY FACTORY cr { STANDARD_LISTS {
SORT_BY "group.last_name, ref_num, status, open_date, priority";
}; };
Step 2 : Edit the list_chg.htmpl file for Change Order and list_cr.htmpl for Incidents
1) Search for the following text in your list_chg.htmpl file
<pdm_macro name=lsStart> <pdm_macro name=lsWrite text="pdm_if \"@{list.sla_violation:0}\" != '0'">
2) Just above the <pdm_macro name=lsStart> define the following var ref_num_style;
3) Now, Edit the pdm_macro column for Group to the following <pdm_macro name=lsCol hdr="Group" attr=group link=yes>
Below is the customization to the list_cr.htmpl file
1) Search for the following in your list_cr.htmpl file <PDM_MACRO NAME=lsStart>
2) Just above the <pdm_macro name=lsStart> define the following var ref_num_style;
3) Now, Edit the pdm_macro column for Group to the following <PDM_MACRO NAME=lsCol hdr=Group/Parent attr=group link=yes>
Step 3: Save Files and perform the following
1) Run the pdm_webcache from the command prompt 2) Stop and Start the Unicenter Service Desk Services. 3) Look at your Analyst Login and expand the "All" scoreboard value under Incidents and Change Order to see if your tickets are sorted as per the Group 4) Note : You first need to add the column "Group" if you did not have it earlier.