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

Command line scripts for work items

Need a script that is used to get the WI details such as Summary, Filed Against, etc which is used by our scripts.  What do I need to download?  Where do I point the cmd line prompt? Is there a document to shows examples of such a script? 


 Thanks

0 votes


Accepted answer

Permanent link

 As far as I know, such scripts do not exist. The RTC SCM command line has some commands related to work items and change sets. 


The work item command line comes closest but does not yet have an option to just export one work item. This would have to be added. I never had the time, unfortunately.  

Ralph Schoon selected this answer as the correct answer

0 votes

Comments

 I always wanted to have something like this and found an opportunity to put it into the Work Item Command Line.

 
-printworkitem
    repository="value" 
    user="value" 
    password="value" 
    id="value"
    /allColumns 
    /asrtceclipse 
    /attributeNamesAsIDs  
/ignoreErrors /suppressAttributeExceptions /ignoreErrors [attachmentFolder="C:\temp\export"] [timestampFormat="MMM d, yyyy hh:mm a"] [columns="Type,Id,Planned For,Filed Against,Description,Found In"]

I will try to blog about it on https://rsjazz.wordpress.com/ as soon as I can. The latest code in the repository does it. It needs a latest opencsv library and a library commons-lang3-3.1.jar in the lib folder to support the CSV export and import feature.

https://github.com/jazz-community/work-item-command-line/releases/tag/WCL_4.3  


Open CSV and commons-lang are only needed for CSV export and -import. 
WCL 4.3 is for RTC 6.5 and later. For older versions the CSV export and import might not work.

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: Jan 09 '19, 5:15 p.m.

Question was seen: 1,591 times

Last updated: Jan 17 '19, 4:30 a.m.

Confirmation Cancel Confirm