IssuesService.GetAttachments not returning FileEN collection
Gemini Version: v3.6.0 Beta 2 Build 2526
I have an issue within Gemini that has four PDF attachments. I can see the attachments when I click the Attachment tab on ViewIssue.aspx. When I call the IssuesService.GetAttachments method passing in the issue number, the FileEN collection is 0 when it should be 4.
Please advise on how to get issue attachments.
Cheers.
dongertz
· 1 |
|
Monday, December 21, 2009, 6:12:52 PM |
0
|
Are these issue or comment attachments? |
||||
|
0
|
The four attachments are Comment Attachments. |
||||
|
0
|
You need to get comment attachments. |
||||
|
0
|
So what is returned from GetAttachments? Is this method suppose to return ALL attachments bound to an issue and if the returned FileEN object has a value for CommentID you know it's bound to a comment. If CommentID is empty, then you know it's not. I guess what I'm trying to avoid is a situation like: IssueEN.IssueComments return 20+ IssueCommentEN object and, from your earlier post, I would need to call the GetCommentAttachment 20+ times just to see if the comment has an attachment.
|
||||
|
0
|
Unfortunately, yes. When getting issue attachments (not comments) it will return only the issue attachemnts (as added when creating issue or via the attachments tab). We will look into a new method to return all comments attachments. |
||||
|
0
|
Ok, so can you explain to me how the Attachments tab on ViewIssue.aspx within Gemini works, but when I click on that tab, it shows the 4 Comment Attachments. |
||||
|
0
|
It brings all issue attachments including comments via a method that is not exposed to the API |
||||
|
0
|
That's unfortunate, when do you think "a new method to return all comments attachments" will be available because I can really use it now. |
||||
|
0
|
Hopefully for the next release, no ETA yet. |
||||
|