How can I retrieve an AccuWork issue attachment from the cli?
The xml format of an AccuWork issue will show you the names of the files that are attached to the issue record as well as a storage id for each attachment. Here is some sample xml output that I cut and paste from an "accurev issuelist" command:
The name and StorageID can then be used in the command
accurev getstorage -p depotname -s StorageID -l .\name
to get the contents of the file and store them in the current directory with the name provided. You can put in a complete path instead of "." to have the files written to any location on disk that you would like.
Using the above xml output as an example, you would run the command
accurev getstorage -p sample_depot -s 504 -l C:\temp\sample.doc
to get the attached sample.doc file and put it in C:\temp.
For more information contact AccuRev Support.