Add Column to Work Lists
Add Column to the Work Cache
Mapping a Column to the Work Cache
Mapping a Column from the XML Mapping File
Add Column to the Cache Report
Troubleshooting
When configuring work lists with additional columns you may want to include these columns in Work Cache reports. This topic explains the steps on how to do this.
Note: You need to be a Site Collection Administrator or a member of the BrightWork Cache Administrators group with full control for some of the actions below as noted in each section.
Before you begin it is assumed you have added columns to your work lists. The supported lists are:
The contents of the Generic List and BrightWork Custom List will only be added to the Work Cache list if the calculated Boolean column bwAddItemToWorkCache exists in the list and its calculated value is 'Yes'.
The following steps require Site Collection Administrator access.
First, you need to add a column to the Work Cache list. This list is hidden to prevent accidental editing. The only time you typically need to access it is when you need to add columns or to add a view.
Navigate to the site collection home page, paste bwWorkItemCache after the site name and click Enter on your keyboard to open the hidden Work Cache list. For example the URL should be something like the following:
https://myserver/sites/mysitecollection/bwWorkItemCache
Use the same column type in the Work Cache list as the source list. For example; if the column is a Date and Time column in the list, create a Date and Time column in the Work Cache.
If you are adding a choice column to the Work Cache list, we recommend the default value is left blank.
The Work Cache list supports the addition of calculated columns. You do not need to map these columns from the source list to the Work Cache list.
We do not recommend adding Site Columns to the Work Cache list.
The name you use to add the column to the Work Cache list doesn't really matter as you will be mapping it in the next step; however, we recommend the same or a similar name to make the mapping maintenance process easier.
Note: When mapping columns of the same type to the Work Cache, there are two exceptions:
The following steps require Site Collection Administrator access.
Note: Work Cache mapping applies to the entire site collection. Therefore, even though the mapping is done in a template or project site, it impacts the entire site collection. So when making changes to Work Cache mapping, it is important to consider the impact of any changes on other sites within the site collection.
You can then add new column mappings or manage existing mappings.
Tip! If you have not already added a column to the Work Cache list you can open the Work Cache list in a new browser tab by clicking the 'Work Cache' link at the top of the mapping page.
The option to select the source list is at the top of the page. Work Cache mapping allows you to map from the following lists:
The Generic List and BrightWork Custom List will only appear as source list options if the calculated Boolean column bwAddItemToWorkCache exists in the list.
It is possible but not advisable to manually map items to the Work Cache by updating the WorkItemCacheGlobalSettings.xml file.
Note: We recommend using SharePoint Designer 2013 (available as a free download from Microsoft) for updating the XML file. Having some experience with XML would be an advantage.
The following steps require Site Collection Administrator access.
You must update the global WorkItemCacheGlobalSettings.xml mapping file. This file maps columns from the supported lists to Work Cache columns.
https://myserver/sites/mysitecollection
Add an XML tag to the appropriate list template, for example:
<Field target="YourWorkCacheColumn" source="YourListColumn" />
.
The WorkItemCacheGlobalSettings.xml is for specifying global mappings in a BrightWork site collection. Every site also has its own WorkCacheSettings.xml file.
If the column you want to map has a different internal name in a certain site (for example, one project template uses a column called Organization and the rest use a column called Department), update the local WorkCacheSettings.xml with the appropriate mapping information and it will override the global setting specified in the top level WorkItemCacheGlobalSettings.xml file.
Changes to the WorkCacheSettings.xml file are automatically included in Design Sync. This means that changes to this file should be made in the Template and synced, if Design Sync is being used.
Note: Take care editing the global mapping file as syntax errors will prevent all updates to the Work Cache.
Finally, add the column to the Shared or Personal report that uses the cache.
After going through this procedure if you find the new column's data is not appearing in the report, the first recommended step is to retrace the above steps checking each step of the procedure.
If the Work Cache mapping file was updated after the work item(s) themselves were updated, then there will have been no event triggered on the list to update the work item(s) in the Work Cache. To fix this either:
Edit and save the Work Item(s) in the project. This will trigger an update to the Work Cache Update queue which, when processed, updates the Work Cache.