Feature #12181

Updated by Toshi MARUYAMA 9 months ago

It would be very handy to include the attachments information to the issues.xml in the REST API
Same is already implemented for relations (@issues.xml?include=relations@)

Idea is to implement something like

<pre><code class="ruby"> &lt;pre&gt;
api.array :attachments do
issue.attachments.each do |attachment|
render_api_attachment(attachment, api)
end
end if include_in_api_response?('attachments')
</code></pre> &lt;/pre&gt;

In the index.api.rsb file. Include attachements with @issues.xml?include=attachments@

Thanks

Back