Why is the "Time" tab not displaying on some work items and how can I fix this? (on-premise only)
Question
We recently switched from 7pace Timetracker (on-prem) for DevOps Server to 7pace Timetracker (cloud) for DevOps Services. The "7pace Timetracker" tab (formerly the "Time" tab) is not showing up on the work item form; is there a way to fix that?
Answer
Unfortunately, when you migrate from DevOps Server to DevOps Services, extensions are not inserted into the work item form template (it is marked as modified internally in DevOps Services). Therefore, you have to modify your WI xml templates in order to add 7pace Timetracker-specific fields like the "7pace Timetracker" tab and "Start Tracking" button on the work item form.
The basic process is described here: https://docs.microsoft.com/en-us/vsts/extend/develop/configure-workitemform-extensions?view=vsts
In this specific case, do the following:
1. Navigate to "https://dev.azure.com/[youraccount]/_admin/_process".
2. Locate the process template you want to modify, click on "..." button and Export it. This will produce a zip archive with a lot of folders and files inside.
3. Open the "WorkItem Tracking\TypeDefinitions" folder. There, you should see a lot (10-20) of xml files of Work Item Types.
4. Select the types you want to have "Time" and "Work" added to the work item form (or maybe all) and apply edits to each xml:
a. Add this into your <WebLayout> as the first element:
<Extensions>
<Extension Id="7pace.Timetracker"/>
</Extensions>
b. Add two (2) new groups to enable "Time" and "Work".
Work is located by default (but you can change the location as you wish) inside <Page> second <Section>, before closing </Section> add:
<GroupContribution Label="Work" Id="7pace.Timetracker.work-item-form-group" />
Time is a "page", add it after </Page>:
<PageContribution Label="Time" Id="7pace.Timetracker.work-item-form-page" />
Apply the same edits to all affected xmls.
5. Save and import Template. After that, "Time" and "Work" will reappear.
Question (on-premise only)
We were installing the on-premise version of 7pace Timetracker and after finally reaching the point where it begins adding the "Start Tracking" button and the "7pace Timetracker" tab (formerly the "Time" tab) to each work item dialog, an error occurred: "TF237070: Importing the definition failed. The definition you are trying to import did not validate against the schema. Edit the definition, then try to import it again."*
Can you help us to resolve this issue?
*Please note that the error message, above, may or may not contain additional details such as:
- The element 'ALLOWEDVALUES' has incomplete content. List of possible elements expected: 'GLOBALLIST, LISTITEM'.
- The element 'GROUPEDVALUES' has incomplete content. List of possible elements expected: 'GLOBALLIST, LISTITEM'.
Answer (on-premise only)
Background
Note: This is for on-premise only.
During the installation of 7pace Timetracker, we adjust your work item template by adding 7pace Timetracker-specific elements or contributions such as the "Start Tracking" button and the "7pace Timetracker" tab.
The only way for us to add these extra elements to your work item template is described in the Microsoft article found here. So, unfortunately, there is no way for us to deviate from this process on our side.
DevOps Server behaves inconsistently in that it may work properly with these broken xml definitions day-to-day, however when 7pace Timetracker tries to import them during our installation process, they fail validation and we are unable to add our 7pace Timetracker contributions like "Start Tracking" and the "7pace Timetracker" tab.
Fix/Workaround
The only way to avoid receiving these errors during installation is to fix the broken work item template definitions on your end or to use 7pace Timetracker without its contributions (just click the "Cancel" button on the 7pace Timetracker installation error dialog and you can use it without them).
One example of an issue that could be causing broken work item templates might be:
An error caused by a self-closing tags such as:
<SUGGESTEDVALUES some_parameters />
The valid tag should be:
<SUGGESTEDVALUES>some_content_here</SUGGESTEDVALUES>
Please contact Microsoft DevOps Server support; they may be able to provide you with a fix or workaround.
Question (on-premise only)
We have multiple project collections within the same project collection, and we have some work items that show the "Time"/"7pace Timetracker" tab and some that don't. Why is this and is there a way to resolve it?
Answer (on-premise only)
Starting with TFS 2018, we install the "Time"/"7pace Timetracker" tab and "Start Tracking" button into existing projects and collections during the installation of Timetracker or during an update. When a user creates a project after Timetracker installation, these Timetracker-specific add-ons are not configured for the new projects.
To fix this and update Work Item Extensions, like the Work Item "Time"/"7pace Timetracker" tab and "Start Tracking" button, please open the Timetracker Configuration Tool and reapply these extensions by clicking "Update Availability".
Comments
0 comments
Please sign in to leave a comment.