It's all about the answers!

Ask a question

Does the Work Item REST API support adding attachments?


Samit Mehta (31103) | asked May 11 '10, 11:37 p.m.
JAZZ DEVELOPER
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

4 answers



permanent link
Alexey Kudinov (61) | answered Jun 21 '10, 11:05 a.m.
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

permanent link
Patrick Streule (4.9k21) | answered Jun 22 '10, 5:15 a.m.
JAZZ DEVELOPER
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

permanent link
Yue CDL (1611) | answered Mar 17 '12, 2:06 a.m.
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!

permanent link
Ralph Schoon (59.0k23642) | answered Mar 23 '12, 5:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You can use the Plain Java Client libraries.

Your answer


Register or to post your answer.