It's all about the answers!

Ask a question

how to compare the two workspaces and get the defects checked in between two workspaces using scm command


manobhiram juvvadi (1518) | asked May 03 '16, 3:11 a.m.
edited Jun 21 '16, 4:34 p.m. by David Lafreniere (4.8k7)
I have two workspaces named  290416 and 040516. I want to compare the two workspaces and get the defect id's with details which got fixed in latest workspace say 040516 using scm commands.

expected output should be like
Defect no     Defect tilte


Thanks
Manobhiram

Accepted answer


permanent link
Shashikant Padur (4.3k27) | answered May 03 '16, 6:38 a.m.
JAZZ DEVELOPER
You can use the scm compare command:
scm compare workspace 290416 workspace 040516 -I w -f o
I believe '-f o' should work if not try '-f i'... It depends on which workspace is specified first.
If you are parsing the output use --json option to output in json format.

Take a look at the following link: https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/compare_ex.html&scope=null
manobhiram juvvadi selected this answer as the correct answer

Comments
manobhiram juvvadi commented May 03 '16, 8:58 a.m.

thanks for the link, this link helped me in getting the defects list
i have used the following commad
scm compare -r localwork ws 290416 ws 040516 -I w -S "" -f i

where localwork is the short name for my repository. 

Your answer


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