I need to check whether a workitem has either a changeset or an attachment in my server side extensions.
Please provide me small snippet if anybody has done it !!!
I need to know whether the attachment is added to a workitem or not. If in case attachment is added, i need to retrieve the user who added the attachment in my follow up action in the server extension plugin.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPERJun 23 '15, 9:51 a.m.
You perform Rational Team Concert Extensions Workshop to understand what you are doing, how and how to debug it and to learn how you can compare the old state and the new state.
Once you understand what the old state and the new state in a participant is and how to access its data, you should be able to understand if there is something new and what.
Yes.
How to retrieve the content in an attachment file in server side extensions.
IContent content = attachment.getContent();
String contentType = content.getContentType();
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPERJun 26 '15, 3:33 a.m.
All that information is on https://rsjazz.wordpress.com/ For example:
https://rsjazz.wordpress.com/2012/09/21/downloading-attachments-from-work-items/
https://rsjazz.wordpress.com/2012/08/01/uploading-attachments-to-work-items/
Although that is client API it is pretty much the same in the server API.
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means.
Learn more here.
Comments
Chandan M B
Jun 23 '15, 9:34 a.m.