Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




IssuesService.GetAttachments not returning FileEN collection

api

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
dongertz
Replies (9)
helpful
0
not helpful

Are these issue or comment attachments?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

 The four attachments are Comment Attachments.


dongertz
· 1
dongertz
helpful
0
not helpful

You need to get comment attachments.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

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.

 


dongertz
· 1
dongertz
helpful
0
not helpful

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.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

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.


dongertz
· 1
dongertz
helpful
0
not helpful

It brings all issue attachments including comments via a method that is not exposed to the API


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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.


dongertz
· 1
dongertz
helpful
0
not helpful

Hopefully for the next release, no ETA yet.


Mark Wing
· 9108
Mark Wing