Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Check new attachment is added/deleted from work item

Hi,


I have to check in that, In work item is there any new attachment file is added/deleted using Java API's.
How can I check that any new attachment is added or old file is deleted from work item.
Which API I should use to identify the attachment information of work item.

Thanks

0 votes



One answer

Permanent link

You can try to create a pre condition/advisor for work item save. See https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/ as an example for such an advisor. It shows the operation ID and the extension point you need. Follow the getting started here and do the extensions workshop mentioned. This is the attachment API: https://rsjazz.wordpress.com/2012/09/21/downloading-attachments-from-work-items/ . The link API used to find the attachments is a common API and is available to server extensions as well.

In the advisor, you will have to get the old state of the work item prior to the save and the new state after the save and compare all the attachment data.

0 votes

Your answer

Register or log in to post your answer.

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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: Jan 23 '17, 3:26 a.m.

Question was seen: 1,846 times

Last updated: Jan 23 '17, 4:38 a.m.

Confirmation Cancel Confirm