It's all about the answers!

Ask a question

Listing attachments of a workitem with RPE


David BOURDON (19111) | asked May 24 '18, 11:35 a.m.

How can i list the names of the attached files of a workitem with RPE ?
I can't find in the data source schema of the workitem where are the attachments.
Thx.

Accepted answer


permanent link
Subramanya Prasad Pilar (4.6k16) | answered May 24 '18, 1:38 p.m.
edited May 24 '18, 1:40 p.m.

You can try printing workitem/workItem/auditableLinks/targetRef/comment (with condition workitem/workItem/auditableLinks/name == "com.ibm.team.workitem.linktype.attachment"). workitem/workItem/auditableLinks/targetRef/referencedItem/href gives link to the attachment.

David BOURDON selected this answer as the correct answer

Comments
David BOURDON commented May 24 '18, 2:28 p.m. | edited May 26 '18, 6:27 p.m.

 Thanks it exactly answers my problem!

Your answer


Register or 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.