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
Thanks,
Samit
4 answers
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
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
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!