https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-06-19T00:37:13ZRedmineRedmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=174262010-06-19T00:37:13ZEric Davis
<ul><li><strong>Tracker</strong> changed from <i>Defect</i> to <i>Feature</i></li></ul> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=194542010-08-17T09:27:49ZDaniel N
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>90</i></li></ul><p>Thanks to Heiko this solves it for me:</p>
<pre>
i = 0
issue.relations.select { |r| r.other_issue(issue).visible? }.each do |relation|
if i == 0
pdf.SetFontStyle('B',9)
pdf.Cell(35,5, l(relation.label_for(issue)) + ":", "LT")
pdf.SetFontStyle('', 9)
pdf.MultiCell(155,5, "#{relation.other_issue(issue).project} - #{relation.other_issue(issue).tracker} # #{relation.other_issue(issue).id}: #{relation.other_issue(issue).subject}", "RT")
else
pdf.SetFontStyle('B',9)
pdf.Cell(35,5, l(relation.label_for(issue)) + ":", "L")
pdf.SetFontStyle('', 9)
pdf.MultiCell(155,5, "#{relation.other_issue(issue).project} - #{relation.other_issue(issue).tracker} # #{relation.other_issue(issue).id}: #{relation.other_issue(issue).subject}", "R")
end
i += 1
end
</pre>
<p>insert above after the following block:</p>
<pre>
for custom_value in issue.custom_field_values
pdf.SetFontStyle('B',9)
pdf.Cell(35,5, custom_value.custom_field.name + ":","L")
pdf.SetFontStyle('',9)
pdf.MultiCell(155,5, (show_value custom_value),"R")
end
</pre>
<p>in <code>lib/redmine/export/pdf.rb</code></p> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=246302011-01-28T18:56:35ZBernhard Furtmueller
<ul><li><strong>File</strong> <a href="/attachments/5243">pdf.rb_1.0.5.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5243/pdf.rb_1.0.5.patch">pdf.rb_1.0.5.patch</a> added</li></ul><p>I took this patch and enhanced it to really show subtasks, also ancestors are shown on top</p> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=246412011-01-28T19:57:48ZBernhard Furtmueller
<ul><li><strong>File</strong> <a href="/attachments/5245">0001-Forward-port-of-Export-issue-to-PDF-does-not-include.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5245/0001-Forward-port-of-Export-issue-to-PDF-does-not-include.patch">0001-Forward-port-of-Export-issue-to-PDF-does-not-include.patch</a> added</li></ul> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=248862011-02-07T08:39:42ZBernhard Furtmueller
<ul><li><strong>File</strong> <a href="/attachments/5301">pdf.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5301/pdf.png">pdf.png</a> added</li></ul> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=294782011-06-02T10:07:22ZXiaobing Sun
<ul></ul><p>Thanks you for the fix.<br />Open it can be adopted to the trunk.</p>
<p>The code can work on 1.1.2.<br />For 1.2.0, it need a little change.</p> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=295162011-06-03T07:27:00ZEtienne Massip
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>New</i></li><li><strong>Target version</strong> set to <i>Candidate for next major release</i></li></ul> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=318242011-08-26T17:30:28ZBernhard Furtmueller
<ul><li><strong>File</strong> <a href="/attachments/6484">0001-Forward-port-of-Export-issue-to-PDF-does-not-include_2.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6484/0001-Forward-port-of-Export-issue-to-PDF-does-not-include_2.patch">0001-Forward-port-of-Export-issue-to-PDF-does-not-include_2.patch</a> added</li></ul> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=336022011-11-08T23:51:09Zyannick quenec'hdu
<ul></ul><p>Hi Bernhard,</p>
<p>Your Patch need a little change to work with Redmine 1.2.1</p>
<p>Thank for your patch</p>
<p>Cheers<br />Yannick</p> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=336372011-11-11T08:20:01ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>7</i></li><li><strong>Assignee</strong> set to <i>Toshi MARUYAMA</i></li></ul> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=336382011-11-11T08:57:56ZJun NAITOH
<ul></ul><p>Hi, I rewritie note-8 patch for trunk, now.<br />I think to note-8 patch have some probrem.<br />If you wait some day, so I will post new patch.<br />Please wait.</p> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=336402011-11-11T10:00:56ZToshi MARUYAMA
<ul><li><strong>File</strong> <a href="/attachments/6768">r7764.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6768/r7764.patch">r7764.patch</a> added</li></ul><p>This is a patch for <a class="changeset" title="code layout clean up test/functional/time_entry_reports_controller_test.rb" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/7764">r7764</a>.</p> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=336412011-11-11T10:06:53ZToshi MARUYAMA
<ul></ul><p>Note 12 patch line 288-298 has smart indents.<br />But, line 364-407 indents and truncating is ugly.<br />Could you rewrite?</p> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=336802011-11-11T23:35:26ZJun NAITOH
<ul><li><strong>File</strong> <a href="/attachments/6769">pdf.rb_r7782.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6769/pdf.rb_r7782.patch">pdf.rb_r7782.patch</a> added</li></ul><p>Toshi MARUYAMA wrote:</p>
<blockquote>
<p>Note 12 patch line 288-298 has smart indents.</p>
</blockquote>
<p>I rewrite now.</p>
<ul>
<li>delete ancestor.project. Because ancestor.project is identical with issue's project.</li>
<li>delete issue.subject by title. Because it is duplicate in the Cell.</li>
<li>add limit for nesting.</li>
</ul>
<blockquote>
<p>But, line 364-407 indents and truncating is ugly.<br />Could you rewrite?</p>
</blockquote>
<p>Sorry, I tried rewrite 364-407 with MultiCell now. But I give up use MultiCell.<br />If I use MultiCell, so I need MovePage(back to before page) method. But TCPDF didn't have this method.</p>
<p>I think to your implementation isn't best, but better.</p>
<p>I added to limit for nesting.</p>
<p>I attached rewrite patch for <a class="changeset" title="Fixed: copied private queries not visible after project copy (#9520)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/7782">r7782</a>.</p> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=336832011-11-12T10:51:53ZToshi MARUYAMA
<ul><li><strong>Subject</strong> changed from <i>Export issue to PDF does not include Subtaks and Related Issues</i> to <i>Export issue to PDF does not include Subtasks and Related Issues</i></li></ul> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=336842011-11-12T11:24:51ZToshi MARUYAMA
<ul><li><strong>Target version</strong> changed from <i>Candidate for next major release</i> to <i>1.3.0</i></li><li><strong>% Done</strong> changed from <i>90</i> to <i>100</i></li></ul><p>I committed note 14 patch in trunk <a class="changeset" title="pdf: add ancestor issues at head of issue pdf (#5634) Contributed by Bernhard Furtmueller and Ju..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/7787">r7787</a> and <a class="changeset" title="pdf: add subtasks and related issues at issue pdf (#5634) Contributed by Bernhard Furtmueller an..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/7788">r7788</a>.<br />I changed one line.<br /><a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/7788/entry/trunk/lib/redmine/export/pdf.rb#L365">source:trunk/lib/redmine/export/pdf.rb@7788#L365</a></p> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=336982011-11-13T01:55:19ZJun NAITOH
<ul></ul><p>Thank you!</p> Redmine - Feature #5634: Export issue to PDF does not include Subtasks and Related Issueshttps://www.redmine.org/issues/5634?journal_id=338962011-11-19T13:37:36ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>7</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>I think we can close now.</p>