Command line scripts for work items
Sean Burke (378●9●144●247)
| asked Jan 09 '19, 5:15 p.m.
edited Jan 10 '19, 2:53 a.m. by Ralph Schoon (63.4k●3●36●46) 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
|
Accepted answer
Ralph Schoon (63.4k●3●36●46)
| answered Jan 10 '19, 3:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jan 17 '19, 2:56 a.m. 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.
It is relatively simple to create a small plain java application see https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ and https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/ for more details.
Ralph Schoon selected this answer as the correct answer
Comments
Ralph Schoon
commented Jan 17 '19, 2:51 a.m.
| edited Jan 17 '19, 4:30 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I always wanted to have something like this and found an opportunity to put it into the Work Item Command Line.
Version 4.0.3 has it: https://github.com/jazz-community/work-item-command-line
-printworkitem repository="value" user="value" password="value" id="value" /allColumns /asrtceclipse /attributeNamesAsIDs 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.
Ralph Schoon
commented Jan 17 '19, 4:22 a.m.
| edited Jan 17 '19, 4:25 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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
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.