Welcome to the Jazz Community Forum
how to compare the two workspaces and get the defects checked in between two workspaces using scm command

Accepted answer

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