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.




How I attachments by create issue?

api

How to create new Issue(IssueEN[]) with attachements, How I do it?

My source:

           IssueEN issue = new IssueEN();
                   .........................................................
                   var postedFile = Request.Files[0];
                   var sFileName = postedFile.FileName;
                               
                    byte[] buf = new byte[postedFile.InputStream.Length];
                    postedFile.InputStream.Read(buf, 0, buf.Length);
                   
                    FileEN[] fileUpload = new FileEN[1];
                    fileUpload[0] = new FileEN();                  
                    fileUpload[0].FileName = sFileName;
                    fileUpload[0].ProjectID = issue.ProjectID;
                    fileUpload[0].FileData = buf;                                 
                    issue.Attachments = fileUpload;
        
             _proxy.CreateIssue(issue);

Thank you,
June

Punchai
· 1
Punchai
Replies (2)
helpful
0
not helpful

You will need to add the attachment after creating the issue using the CreateAttachment api.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Thank you very much MarkWing.


Punchai
· 1
Punchai