Project

General

Profile

How to read the attachments from issue

Added by Vigneshwaran Thenraj almost 8 years ago

for id in issue:
print id.attachments

The above code print the attachments as

<redmine.resultsets.ResourceSet object with Attachment resources>
<redmine.resultsets.ResourceSet object with Attachment resources>
<redmine.resultsets.ResourceSet object with Attachment resources>
<redmine.resultsets.ResourceSet object with Attachment resources>
<redmine.resultsets.ResourceSet object with Attachment resources>
<redmine.resultsets.ResourceSet object with Attachment resources>
<redmine.resultsets.ResourceSet object with Attachment resources>
<redmine.resultsets.ResourceSet object with Attachment resources>
<redmine.resultsets.ResourceSet object with Attachment resources>
<redmine.resultsets.ResourceSet object with Attachment resources>

And moreover how to read the all the attachments file which is associated with issue via python script