Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

List of work items and their parents via SCM

Hi,

I create a list of work items via scm compare between two snapshots:

$ scm compare snapshot 3032 snapshot 2771 -I w
Work Item 111: Allow defining permissions for project and team areas in the Web UI
Work Item 222: Set up some sort of Jazz Foundation build
Work Item 333: TCT031b: Jazz Translations - more variables

The point is, how can I get parent IDs of the listed work items in the command line with SCM?

For example, how can I get the parent id of the work item 111 via SCM?


0 votes


Accepted answer

Permanent link
I believe you want to find the parent workitem of the listed workitem(s). Scm command line only deals with scm artifacts and although it lists the workitems associated with a change set it does not have any commands to perform operation on a workitem. You have to write a script and use the Workitem api's to get this information.
Ralph Schoon selected this answer as the correct answer

1 vote

Comments

Thank you for this information. Do you know where can I find a tutorial how to use the Workitem api with a simple example?

For extending and automation using the Java APi start here:

https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/
Follow the information how to get started. There are numerous Work Item API examples available.

Also see https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation for a first glimpse at the work item API. 

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,023
× 1,203
× 9
× 6

Question asked: Jun 07 '16, 3:25 p.m.

Question was seen: 2,919 times

Last updated: Jun 08 '16, 8:37 a.m.

Confirmation Cancel Confirm