7pace Timetracker for TFS' Application Programming Interface (API) feature provides a dedicated URL that allows you to access and extract pure, updated data from Timetracker into the system of your choice as OData feed, e.g. Microsoft Excel, PowerBI, Tableau, Qlikview, SQL, or any third-party system that “talks” the protocol that our API is offering. Once the data is loaded, you can save the file, and later refresh the data at any time to view updated information from our database. Below, we will guide you through the process of activating the API and then how to access Timetracker data by authenticating the OData feed (using Excel as an example).
Activating the API
1. Log into your Team Foundation Server.
2. On the main menu bar, click TIME.
3. On the Time menu bar, click Configuration.
4. In the left panel, click API -> The "Personal API Settings" page displays.
5. Select the Activate API Access checkbox.
6. The collection support is inside the root with api/{collection}/odata. Copy the URL under "Your reporting API root is:"
You are now ready to begin the process of accessing Timetracker data.
Timetracker 4 | API Page
Timetracker 3 | API Page
Accessing 7pace Timetracker Data by Authenticating OData Feed in Excel
As mentioned, you can access and extract Timetracker into the system of your choice as OData feed. Below, we will take you through the steps to do this in Excel.
Important: By default, 7pace Timetracker supports Microsoft Excel 2016; if you are using an earlier version, like Excel 2015, you will need to install the "Microsoft Power Query for Excel" add-in. You can download this add-in from the Microsoft download center.
Note: Remember to wrap the parameter values in your query into single (' ') quotes.
1. Open Microsoft Excel.
2. In a new workbook, click the Data tab.
3. On the Data tab, click the New Query menu and select From Other Sources > From OData Feed -> The OData Feed dialog box displays.
4. In the URL field, above, paste the URL of your 7pace Timetracker account (from the Personal API section of the "Configuration" tab, as mentioned under "Activating the API", above).
5. Click the OK button -> The dialog box to authenticate your OData feed displays.
6. In the left pane, select "Windows".
7. The default is "Use my Current credentials". If sticking with this selection, .enter your username and password. If TFS belongs to a specified domain, select "Use alternate credentials" and enter the credentials for that domain.
8. Click the "Connect" button -> The system displays the "Navigator" dialog box, below, upon successful verification of the URL.
9. In the left navigation tree, select TimeExport -> The right pane displays the required and optional fields for you to enter before accessing the data.
10. In the StartDate field, enter the start date from when you want to access the data.
Enter the date in YYYY-MM-DD
format.
11. In the EndDate field, enter the end date up to which you want to access the data.
Enter the date in YYYY-MM-DD
format.
(Optional) In the IsComputeTopPbi field, enter true to enable it.
(Optional) In the GroupByDays field, enter true to enable it.
(Optional) In the IsBillable field, enter true to enable it.
12. Keep the default settings and click the Connect button -> If the authentication is successful, the Navigator dialog box displays the preview of your OData feed.
13. Click the Load button to load the data feed to the Excel -> The data is loaded to Excel and the corresponding query is listed at the right side under Workbook Queries.
14. Click the query to load the corresponding data.
(Optional) Select the query and click the Refresh button () to refresh the data corresponding to the query.
Using 7pace Timetracker API in Your Own Project
To help you access Timetracker's data through our API, we've provided the source code of a simple application that demonstrates basic Timetracker API usage in GitHub.
You can get more information about our API model and parameters at Configuration->API->Timetracker API Reference.
Related Articles
Comments
0 comments
Please sign in to leave a comment.