Azure devops VisualStudio在线龟甲集成

Azure devops VisualStudio在线龟甲集成,azure-devops,tortoisegit,Azure Devops,Tortoisegit,是否可以将VisualStudio Online与乌龟问题跟踪程序集成?键入并查看要提交的工作项列表会很好 目前,我可以通过启动一条带有[workitem number]的消息进行提交,该消息将在Visual Studio Online中绑定。例如,1个提交消息 从存储库中查找时,我似乎找不到任何问题跟踪程序 提供程序包含源代码,使用TFS/VSTS API从TFS/VSTS获取工作项,但此提供程序太旧,您可以使用TFS/VSTS API自行构建提供程序 使用TFS/VSTS API获取工作项的

是否可以将VisualStudio Online与乌龟问题跟踪程序集成?键入并查看要提交的工作项列表会很好

目前,我可以通过启动一条带有[workitem number]的消息进行提交,该消息将在Visual Studio Online中绑定。例如,1个提交消息

从存储库中查找时,我似乎找不到任何问题跟踪程序

提供程序包含源代码,使用TFS/VSTS API从TFS/VSTS获取工作项,但此提供程序太旧,您可以使用TFS/VSTS API自行构建提供程序

使用TFS/VSTS API获取工作项的简单代码:

var tfs = TeamFoundationServerFactory.GetServer("https://[account].visualstudio.com");
            tfs.EnsureAuthenticated();
            var workItemStore = (WorkItemStore)tfs.GetService(typeof(WorkItemStore));
          var r=  workItemStore.Query("select[System.Id], [System.WorkItemType], [System.Title], [System.AssignedTo], [System.State], [System.Tags] from WorkItems where [System.TeamProject] = 'ScrumStarain' and [System.WorkItemType] = 'Product Backlog Item' and [System.State] <> ''");
另一个样本:

var u = new Uri("https://[account].visualstudio.com");
VssCredentials c = new VssCredentials(new Microsoft.VisualStudio.Services.Common.WindowsCredential(new NetworkCredential("[alternate user name]", "[password]")));
 var connection = new VssConnection(u, c);

            var workitemClient = connection.GetClient<WorkItemTrackingHttpClient>();
var result = workitemClient.QueryByWiqlAsync(new Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.Wiql() { Query = "select[System.Id], [System.WorkItemType], [System.Title], [System.AssignedTo], [System.State], [System.Tags] from WorkItems where [System.TeamProject] = 'ScrumStarain2' and [System.WorkItemType] = 'Product Backlog Item' and [System.State] <> ''" }, "ScrumStarain2").Result;

怎么样?@ StaseMsFT,该项目的目标是Team Foundation Server,而不是VisualStudio在线。我已经浏览了代码,这看起来是一个很好的开始,可以使用我自己的提供程序。我没有找到VSTS的提供程序,但是您可以使用TFS/VSTS API自行构建一个提供程序。