Work Item Command Line: Unable to upload attachments while creating Work items
![]()
Vijayalaxmi B (13●3)
| asked Oct 15 '20, 1:03 a.m.
edited Oct 15 '20, 8:53 a.m. by Ralph Schoon (62.7k●3●36●43) Hello Team,
I am trying to import a csv file which contains workitems to Jazz.
WCL :
Mapping.xml
The workitem is created but without attachments.
How can I create the WI with atatchments? Any configuration I am missing here in the WCL? |
Accepted answer
![]()
Ralph Schoon (62.7k●3●36●43)
| answered Oct 15 '20, 8:40 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The importer uses the pseudo attribute name/id "Attachments" or "attachments" to identify the attachments column in the CSV. com.ibm.team.workitem.section.attachments or the mapping com.ibm.team.workitem.linktype.attachment.attachment make no sense.
I would suggest you run an export e.g.
wcl -exportworkitems /ignoreErrors repository="https://clm.example.com:9443/ccm" user=myadmin password=myadmin projectArea="JKE Banking (Change Management)" exportFile="C:\Temp\20201015_Export\Test.csv" query="All" columns="workItemType,summary,Attachments" delimiter=;
and look at what you get. With respect to using the mapping, I can not really tell how that would look like for attributes at the moment. I would assume that the RTC/EWM side would require to use the attribute name/id
"Attachments" or "attachments". Vijayalaxmi B selected this answer as the correct answer
|
Comments
Hello Ralph,
Have you tried to download and provide the 7.0.2 Plain Java Client Libraries to WCL, when trying to use it against a 7.0.2 server? I updated the Readme with prerequisites.
I updated PlainJava Client libraries with 7.0.2 and it worked :)
Glad to hear that.