Export work item into a word doc or PDF
Is there a good solution for exporting specific content from a RTC work item into a word document or PDF file. The print feature extracts everything from the work item and layout is not neat for pasting to a document so a better solution would include building a script that would extract defined data fields and build a report that could be saved as a pdf or doc file. This would provide an offline summary of a work item externally. Has anyone implemented something like this?
|
3 answers
You can export the results of a query to a CSV file or HTML. From there you can manipulate the data externally of just convert it to PDF form.
Comments
Adam Dilling
commented Mar 02 '17, 12:22 p.m.
Thanks, for my specific use case I am trying to build a report from a single work item not from the results of a query and would like to include content that may not be available in a simple query (discussion history for example). Hoping someone may be some tool or example code that has been used to export into a formatted document to eliminate the manual manipulation by the user.
|
One option is to create a report template using Rational Publishing Engine and import it in RTC. You can generate Word, PDF or HTML reports through RTC based on the template designed.
|
My preferred solution for exporting work items content to PDF or MS Word is to go via an HTML export as intermediate step. For getting a PDF I simply use an online converter.
There are quite many around for free, so you can either google or check out https://converter.page/ where find an good overview for many problems. Both, html to PDF and also .docx should be supported.
Using HTML as intermediate format should give a better result than using CSV.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.