HTML字段的报告(例如工作项描述) [英] Report of HTML-Fields (e.g the workitem description)

查看:94
本文介绍了HTML字段的报告(例如工作项描述)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我对报告或TFS Rest API有疑问。哪一个使用并不是那么重要。所以这就是我想要做的:我想在一张纸上打印一组工作项(通常是产品积压项),所以我可以给我的团队发一份讲义。我的
问题是我不知道如何获得像工作项目描述这样的字段。


正如我所读,不可能使HTML字段可报告?如果确实如此,为了我的目的并不重要,但我需要使用TFS Rest API查询这些数据。但是在API中,字段将从结果中排除。有谁知道原因?
如果有人可以向我推荐任何解决方案,使用报告或REST Api的电子邮件,那将非常有用。


亲切的问候,


<塞巴斯蒂安。

解决方案

塞巴斯蒂安,


感谢您在此发帖。


我认为最简单的方法是创建包含所需字段的PBI查询,然后在Excel中打开查询。工作项将在excel表中列出字段,然后您可以相应地打印它们。


参考以下文章:



但是,您也可以使用REST API获取特定工作项的文件内容,然后导出到CSV文件,以下PowerShell脚本供您参考: 

 


collectionurl =" http:// server:8080 / tfs / DefaultCollection"


workitemId =" 58"


Hi there,

I have got an question about reporting or the TFS Rest API. Which one to use is not so important. So here is what I want to do: I want to print a set of workitems (usually Product backlog items) on a sheet of paper, so I can give a handout to my team. My problem is that I don't know how to get some fields like the workitem description.

As I read it is not possible to make HTML fields reportable? If it is true, for my purpose it does not matter, but then I need to query these data using the TFS Rest API. But in the API, the fields are excluded from the result. Does anyone know the reason? It would be pretty helpful, if someone could suggest me any solution, eighter using the reporting or the REST Api.

Kind regards,

Sebastian.

解决方案

Hi Sebastian,

Thank you for posting here.

I think the simplest way is creating a PBI query with the needed fields included, and then open the query in Excel. The work items will list in excel sheet with the fields, then you can print them accordingly.

Reference below articles:

However you can also use the REST API to get the files contents for the specific work item then export to CSV file, below PowerShell script for your reference: 


collectionurl = "http://server:8080/tfs/DefaultCollection"


workitemId = "58"


这篇关于HTML字段的报告(例如工作项描述)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆