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

Does the Work Item REST API support adding attachments?

The wiki page covering the Work Item REST API (https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2) does not mention to add attachments to Work Items using the REST API. The table listing attributes at the bottom of that page seems to indicate that it should be possible to write to the "rtc_cm:com.ibm.team.workitem.linktype.attachment.attachment" attribute. If it is supported how can one "post" attachments?

Thanks,
Samit

0 votes



4 answers

Permanent link
The wiki page covering the Work Item REST API (https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2) does not mention to add attachments to Work Items using the REST API. The table listing attributes at the bottom of that page seems to indicate that it should be possible to write to the "rtc_cm:com.ibm.team.workitem.linktype.attachment.attachment" attribute. If it is supported how can one "post" attachments?

Thanks,
Samit


I am implementing at the moment similar functionality and would be very appreciate for some hints, how it is possible to do such things.
Thanks

0 votes


Permanent link
The wiki page covering the Work Item REST API
(https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2)
does not mention to add attachments to Work Items using the REST API.
The table listing attributes at the bottom of that page seems to
indicate that it should be possible to write to the
"rtc_cm:com.ibm.team.workitem.linktype.attachment.attachment"
attribute. If it is supported how can one "post"
attachments?

You could add a link to an existing attachment
(rtc_cm:com.ibm.team.workitem.linktype.attachment.attachment is a link
property), but creating new attachments is not supported yet.

--
Regards,
Patrick
Jazz Work Item Team

0 votes


Permanent link
The wiki page covering the Work Item REST API
(https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2)
does not mention to add attachments to Work Items using the REST API.
The table listing attributes at the bottom of that page seems to
indicate that it should be possible to write to the
"rtc_cm:com.ibm.team.workitem.linktype.attachment.attachment"
attribute. If it is supported how can one "post"
attachments?

You could add a link to an existing attachment
(rtc_cm:com.ibm.team.workitem.linktype.attachment.attachment is a link
property), but creating new attachments is not supported yet.

--
Regards,
Patrick
Jazz Work Item Team

is it supported now? thanks!

0 votes


Permanent link
You can use the Plain Java Client libraries.

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,938

Question asked: May 11 '10, 11:37 p.m.

Question was seen: 7,304 times

Last updated: May 11 '10, 11:37 p.m.

Confirmation Cancel Confirm