Uploading Attachment to WI using server side plugin
Hi,
I have successfully added attachment to WI using java client side api ,there is nice blog I have used example given in below blog for that
https://rsjazz.wordpress.com/2012/08/01/uploading-attachments-to-work-items/
Now,I am trying to implement upload attachment to WI using server side API but I am not able to find which server side api I have to use to upload attachment to WI.
I have used this createAttachment(projectArea,monitor) method as below:
IAttachment attachment= workItemCommon.createAttachment(projectArea, monitor);
attachment.setName(attachmentFile.getName());
I have read the following forum question regarding How to read file content
https://jazz.net/forum/questions/167302/how-can-i-read-an-attachment-with-the-serverside-api
from this I got idea about how to read content of file,in next step I want to attach that file to WI.
But I am facing problem how I can use this to read attachment and add that attachment to WI.
Please help me with this,how to use createAttachment() method and add attachment or link that attachment to WI.
I have successfully added attachment to WI using java client side api ,there is nice blog I have used example given in below blog for that
https://rsjazz.wordpress.com/2012/08/01/uploading-attachments-to-work-items/
Now,I am trying to implement upload attachment to WI using server side API but I am not able to find which server side api I have to use to upload attachment to WI.
I have used this createAttachment(projectArea,monitor) method as below:
IAttachment attachment= workItemCommon.createAttachment(projectArea, monitor);
attachment.setName(attachmentFile.getName());
I have read the following forum question regarding How to read file content
https://jazz.net/forum/questions/167302/how-can-i-read-an-attachment-with-the-serverside-api
from this I got idea about how to read content of file,in next step I want to attach that file to WI.
But I am facing problem how I can use this to read attachment and add that attachment to WI.
Please help me with this,how to use createAttachment() method and add attachment or link that attachment to WI.
One answer
Can you look at https://jazz.net/forum/questions/173752/how-to-use-createattachment-to-upload-attachments-on-server-using-rtc-java-api if that answers your questions?