is there a scm cli to know the changesets delivered for a workitem
I want to know if there is a scm cli to know the change sets of a workitem delivered to a snapshot/stream?
Below cli only tells about the number, I want the detail of changeset.
i.e. which two changesets out of 4 were not delivered.
./scm changeset locate -W 96704 -w inttest -r rtcuser
(7999) "inttest" (2 of 4)
One answer
I don't think you can get delivered status of change sets associated with a work item using command line.
The following command will list changesets associated with a work item -
>lscm list changesets -W 96704 -r https://localhost:9443/jazz
The following command will list all changesets created by a user
>lscm list changesets -r https://localhost:9443/jazz --creator testJazzUser1
You can add -j option at the end to more details of changesets in jason format which will also include status.
>lscm list changesets -r https://localhost:9443/jazz --creator testJazzUser1 -j
The work items only capture changesets and not the stream/workspace they were flowing to. The status of a changeset can be active or complete. A completed changeset may have been delivered to multiple streams. A changeset does not have delivered state. The delivered status of a changeset is relative to a stream only. If you change the flow target to another stream, all at sudden your change set is not delivered. You can think of 'delivered' more like 'found' and you can use 'locate' command to find a changeset in a workspace or stream. A completed changeset can be found in multiple workspaces or streams and therefore a work item does not tell if a changeset has been delivered.
The following command will list changesets associated with a work item -
>lscm list changesets -W 96704 -r https://localhost:9443/jazz
The following command will list all changesets created by a user
>lscm list changesets -r https://localhost:9443/jazz --creator testJazzUser1
You can add -j option at the end to more details of changesets in jason format which will also include status.
>lscm list changesets -r https://localhost:9443/jazz --creator testJazzUser1 -j
The work items only capture changesets and not the stream/workspace they were flowing to. The status of a changeset can be active or complete. A completed changeset may have been delivered to multiple streams. A changeset does not have delivered state. The delivered status of a changeset is relative to a stream only. If you change the flow target to another stream, all at sudden your change set is not delivered. You can think of 'delivered' more like 'found' and you can use 'locate' command to find a changeset in a workspace or stream. A completed changeset can be found in multiple workspaces or streams and therefore a work item does not tell if a changeset has been delivered.
Comments
Abraham Sweiss
Jan 05 '15, 6:55 p.m.I would suggest testing the scm query parameter. I have not used, but it looks promising
https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/query_ex.html&scope=null