Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

  1. Does WCL 6.1 require specific IBM client libraries for attachment export

  2. If yes, what are the exact jar names and where should they exist in an upgraded ELM environment

  3. Has anyone successfully exported attachments using WCL 6.1 on an environment upgraded from RTC 4 to 7

  4. Is there a known dependency or limitation that causes WCL to skip attachments while still reporting Success

Thank you for any guidance.

0 votes



One answer

Permanent link
As far as I recall, you have to 
  1. Provide the attachment folder - which you do
  2. Provide the columns you want to print. Use /allColumns if in doubt.

0 votes

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";

So attachments are not exported by default. /allColumns should provide you with all the column id's/names so you can specify what you want. 

You should use the Plain Java Client Libraries for the version of the server or an earlier version within the major version range (N-1). For 7.x you can use any plain java client libraries within the 7.x range. Ideally you update the plain java client libraries to the Service Release you sue as server.

 

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Feb 10, 2:42 p.m.

Question was seen: 50 times

Last updated: Feb 12, 3:24 a.m.

Confirmation Cancel Confirm