Find out the users that has logged-in to TFS in last 6 months

左心房为你撑大大i 提交于 2019-12-08 05:53:55

问题


I am trying to find out the users that has logged into TFS 2015 Update 3 in last 6 months.

Solution using C#/ REST API is good, if not available is there a way to generate the report using SQL.

I have followed this:This. I think the Query is not compatible with TFS 2015 Update 3 database.


回答1:


This is only possible if you don't clean up or archive the contents of the tbl_command in the TFS databases. By default these are cleaned up after 7 days (from the top of my head). The limit can be changed by altering the job definition (which may need to be redone after each service pack installation).

Or you can setup a custom job that copies the contents of tbl_command to a custom table/database for future reference.

Which leaves you to see whether a user has made any work item changes or checked in code in he last 6 months, queued any builds, triggered any releases... Each uses a different API and a lot of these don't offer a easy query by user interface as far as I can know.



来源:https://stackoverflow.com/questions/42810431/find-out-the-users-that-has-logged-in-to-tfs-in-last-6-months

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!