Modifying the Work Item Summary
You can modify the Work Item Summary that is displayed in the preview pane.
This is done by changing the following file:
/JSXAPPS/base/components/ListContainer/prototypes/WorkItem/WorkItemSummary.xml
The specific location of this file depends on whether you are modifying a deployed or an undeployed application. For information, see Introduction.
The WorkItemSummary.xml file contains a series of <span> element pairs, each pair representing an item of information in the Work Item Summary:
<div style="position:relative;width:100%;height:100%;overflow:auto;display: block;background-color:#ececee;"> <span style="position:absolute;left:8px;top:7px;">#IMAGE#</span> <span style="position:absolute;width:692px;height:18px;left:40px;top:12px; font-size:14px;font-family:Arial;font-weight:bold;">#TITLE#</span> <span style="position:absolute;width:196px;height:16px;left:8px;top:35px; font-size:11px;font-family:Arial;font-weight:bold;text-align:right;"> #LDESC#</span> <span style="position:absolute;width:524px;height:16px;left:208px;top:35px; font-size:11px;font-family:Arial;font-weight:normal;">#DESC#</span> <span style="position:absolute;width:196px;height:16px;left:8px;top: 75px;font-size:11px;font-family:Arial;font-weight:bold;text-align:right; ">#LITEMID#</span> <span style="position:absolute;width:184px;height:16px;left:208px;top:75px; font-size:11px;font-family:Arial;font-weight:normal;">#ITEMID#</span> . . . </div>
Each pair of <span> elements contains tokens that represent a label and a work item property (note that the tokens in the first two <span> elements, IMAGE and TITLE, provide the header information in the summary).
The label tokens (those that begin with an "L", for example, LDESC) are substituted at runtime with text from the appropriate localization file, depending on the language chosen. The table below provides the name of the variable in the localization file (locale.xml for English) for each label. For information about the names and location of the localization files, see Localization.
The work item property tokens in the <span> elements (for example, DESC) are substituted at runtime with the appropriate property values for the selected work item.
You can remove or comment out the desired <span> elements to remove information from the summary, change the look and feel by modifying the values in the style attributes, or add any valid HTML (the WorkItemSummary.xml file is simply an HTML file, even though its extension is xml).
Note, however, that you must not remove nor comment out the <div> elements in the WorkItemSummary.xml file. To remove all information from the summary, remove all <span> elements, but retain the top-level <div> elements.
The table below lists the labels shown in the Work Item Summary, the variable from the localization file used to display the label text in the summary, and the substitution tokens representing the information:
Label in Summary | Text Variable in Localization File | Substitution Tokens |
---|---|---|
Description | txtDescription | LDESC/DESC |
Process Name | txtInstanceName | LAPPNAME/ APPNAME |
ID | txtInstanceID | LAPPINSTANCE/ APPINSTANCE |
Work Item ID | txtWorkItemID | LITEMID/ITEMID |
Work Item Priority | txtWorkItemPriority | LPRIORITY/ PRIORITY |
Distribution Strategy | txtDistributionStrategy | LDISTSTRATEGY/DISTSTRATEGY |
Start Date | txtStartDate | LSTART/START |
Target Date | txtEndDate | LEND/END |
Activity ID | txtActivityID | LACTIVITY/ ACTIVITY |
Group ID | txtGroupID | LGROUPID/ GROUPID |
Schedule Status | txtScheduleStatus | LSCHEDULE/ SCHEDULE |
Work Item Version | txtWorkItemVersion | LVERSION/ VERSION |
Attribute #1 . . . Attribute #14 |
txtAttribute1 . . . txtAttribute14 |
LATTR1/ATTR1 . . . LATTR14/ATTR14 |