Accept changes related to a workitem using CLI.
Hi
I want to move some changes, that are contained in some changesets from one Stream to another. Each changeset is related to a workitem. The CommandLineInterface has the command 'accept' and in the manual described as having this feature:
How do I tell the CLI, that I want to accept workitems?
Regards
Erling Jørgensen
|
3 answers
Shashikant Padur (4.2k●2●7)
| answered Aug 30 '12, 12:35 a.m.
JAZZ DEVELOPER edited Aug 30 '12, 12:52 a.m.
Eriling,
The documentation is incorrect and is in the process being fixed. We do not support accepting the change set from a workitem. Which version of RTC are you using? From 3.x onwards, you can deliver the changes from one stream to another as follows... scm deliver -c <changeset itemid/alias> -s <source stream name/alias/itemid> -t <target stream name/alias/itemid> Note: The delivery may fail if it results in a conflict. In that case, you have to create a workspace for the target stream and accept the changes from the source stream. |
Hi Shashikant
I'm running version 4.
Are there any plans to enable moving changes between streams/workspaces, based on workiitems? I am quite sure that is is possible using the RTC client, but it is obviously not possible via CLI.
Thanks for the hint to use 'deliver' directly between steams. I will try that instead of 'accept'. But still I have to find the changesets to be moved. Probably by using the client API. Any ideas about that?
Regards
Erling
Comments Yes, it is possible in the RTC Eclipse client. For the cli, it is tracked at https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=181673 You can find the change set as follows... a) "lscm history" on the component will list all the change sets for that component b) "lscm history" on the file will list the change sets where that file was changed c) "lscm list changeset" - you can specify a bunch of options to narrow down your search criteria.
erling jorgensen
commented Aug 30 '12, 5:17 a.m.
The enhancementrequest sounds as exactly what I need. Can I do anything to promote the request? /Erling Please put in a comment requesting that this feature is important for your team. Thanks. |
Hello
I am not sure for my answer's target but I will try to put my cents. In our case we do need to deliver the change set that is having workitem Approved state. What we did is Create formal workspace – Component and Flow to Dev stream(Using SCM Commands) Unset Target (Using SCM Commands) Change target to Promoted Stream (Using SCM Commands) This will change the Status as outgoing changes from DEV to Promoted Stream. 2. Load workspace (Using SCM Commands) 3. Check history Or Status for Outgoing changes. (Using SCM Commands) 4. Manipulate the result from step 3 and get the parent work item status (Can be done using the command line java OSLC utility for checking of the work item status). 5. If Yes then Accept the changes in the promoted stream, if not then Notify the Admin for the status of the work items.
OSLC utility is again a lightweight solution for the actual implementation as this is more towards resource oriented API that can be flexible to extend for other automation as well. The RTC client API is not came in picture when I dig this up for the solution in terms of the tools and build engines. Client API is hard to implement, maintenance deployment where OSLC will required only Basic Java libraries. |
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.