Null issue comment attachment
Hi all. I try to get all issue attachments. I correct get issue attachment by calling public FileEN GetAttachment(int issueId, int fileId). But i need get all attachments what issue contains. I see what IssueCommentEN has field "Attachment" but it always null. How i can get comment attachments?
I'm using C# language and api library Gemini API v3.7.0.2711. Thank you.
Tayphoon
· 1 |
|
Friday, March 11, 2011, 11:54:58 AM |
0
|
GetComment API should do that. |
||||
|
0
|
Thank you for your answer. I make next method. But commetn.Attachment is still null: private IssueAttachment[] GetIssueAttachmentsInternal(Int32 issueID, Int32 issueTypeID) { List attachments = new List(); attachments.AddRange((from pv in _serviceManager.IssuesService.GetAttachments(issueID) select pv.GetIssueAttachment(issueTypeID)).ToArray()); CounterSoft.Gemini.Commons.Entity.IssueCommentEN[] comments = _serviceManager.IssuesService.GetComments(issueID); foreach (IssueCommentEN commetn in comments) { if (commetn.Attachment != null) attachments.Add(commetn.Attachment.GetIssueAttachment(issueTypeID)); } return attachments.ToArray(); } I try use GetComment method to but nothing changed it is null. |
||||
|
0
|
ANSWER
Sorry, you need to call the GetCommentAttachment api to get the comment's attachment. It will not be returned with the comment for performance reasons. |
||||
|
0
|
Thank it's work fine. |
||||
|
0
|
I noticed that then i use GetCommentAttachment and GetAttachments it return me FileEN with all data(FileData not null). But i need method that return only attachment info (name, type, lenght, etc.). I'm can't found any methods wich do it, gemini API can't do that? Thank you. |
||||
|
0
|
Unfortunately, that is not possible at the moment. |
||||
|
0
|
it's a pity(. Thank you. |
||||
|