How to export work item attachments using WCL 61 in ELM 702 SR1. printworkitem reports success but attachmentfolder has no export?
Hello team,
I am running into an issue with the Work Item Command Line WCL 6.1 attachment export. The printworkitem command runs successfully and reports Success, but no attachments are exported.
Problem Summary I am using the documented syntax for exporting attachments:
wcl.bat -printworkitem repository="https://server/ccm" user="xxx" password="xxx" id="12345" attachmentFolder="D:\WCLExports"
The command runs and prints Success. However:
-
No attachment folder is created under the attachmentFolder path
-
No files are exported
-
Running with /verbose produces no additional output
-
The work item has attachments in the Attachments section (not comments or rich text)
-
I can manually download the attachment from the ELM UI
Environment
-
ELM upgraded over time from RTC 4 to 5 to 6 to 7.0.2 SR1
-
Using WCL 6.1 from GitHub
-
Running from both PowerShell and CMD
-
Authentication works and the work item loads, but attachments do not export
What I have checked
-
Syntax matches the GitHub README
-
Attachment is in the correct Attachments section
-
Path permissions are correct
-
WCL returns Success for the work item
Current JARs in my WCL lib folder
From the WCL 6.1 GitHub release: com.ibm.js.team.workitem.commandline_6.1.0.jar commons-lang3 jar commons-text jar opencsv jar
Copied from my CCM server (upgraded from RTC 4 to 5 to 6 to 7.0.2 SR1): com.hp.hpl.jena_2.7 jar com.hp.hpl.jena.rdf_2.7 jar com.ibm.team.juno.client jar com.ibm.juno.server_5.2 jar com.ibm.team.juno_5.2 jar com.ibm.team.apt.common jar com.ibm.team.tpt.common jar
I do not see any of the expected client libraries such as: com.ibm.team.workitem.client com.ibm.team.workitem.common com.ibm.team.repository.client com.ibm.team.filesystem.client com.ibm.team.scm.client
These do not appear anywhere in the CCM update site plugins folder.
Questions
-
Does WCL 6.1 require specific IBM client libraries for attachment export
-
If yes, what are the exact jar names and where should they exist in an upgraded ELM environment
-
Has anyone successfully exported attachments using WCL 6.1 on an environment upgraded from RTC 4 to 7
-
Is there a known dependency or limitation that causes WCL to skip attachments while still reporting Success
Thank you for any guidance.
One answer
- Provide the attachment folder - which you do
- Provide the columns you want to print. Use /allColumns if in doubt.
Comments
https://github.com/jazz-community/work-item-command-line provides a README and all information that is needed.
The default columns that are used if you do not specify anything are:
private static final String DEFAULT_COLUMNS = "workItemType,id,internalState,internalPriority,internalSeverity,summary,owner,creator";