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

How to get component names of a particular Stream?

Hello All,
I have 2 questions here.

1.Is it possible to get all components of a Stream? by giving StreamName as input, I need to list all components of a particular Stream.

2.With the Componentname i need to get all filenames of that component.

I tried myself with different ideas but couldn't make it.

kindly post your suggestion on this.

Thanks in advance.

0 votes



2 answers

Permanent link
Try https://jazz.net/forum/questions/202289/on-delivery-of-changeset-how-to-retrieve-component-list-under-a-stream-via-changeset/202299

Or this https://rsjazz.wordpress.com/2013/09/24/managing-workspaces-streams-and-components-using-the-plain-java-client-libraries/ and check the related posts and links provided.

0 votes

Comments

Hi Ralph,

Thanks for your post. In the link its retrieving all components, but i need to get only the components of a single stream(i.e by giving Stream name as argument).

Kindly correct me if i'm wrong.

Thank you.

Have you looked into the code in https://jazz.net/forum/questions/202289/on-delivery-of-changeset-how-to-retrieve-component-list-under-a-stream-via-changeset? That explains how to get it for a stream. It uses server API, but I would assume the client API has also a call like

getComponentsForWorkspace()

Ralph, with the above code i got all UUID's of a stream, still I need to get component names also. With the below code, cant find the component names

IComponent[] components = (IComponent[]) this.getRepositoryItemServiceForScm().fetchItems(componentHandles,
                        IRepositoryItemService.COMPLETE);
Can u help me out in this situation.
Thank you.

Ralph, with the above code i got all UUID's of a stream, still I need to get component names also. With the below code, cant find the component names

IComponent[] components = (IComponent[]) this.getRepositoryItemServiceForScm().fetchItems(componentHandles,
                        IRepositoryItemService.COMPLETE);
Can u help me out in this situation.
Thank you.


Permanent link
If you are using it in a script then you can also try the scm commandline.
https://jazz.net/library/article/1031
The listing of components and files/folders for a component is at the bottom of the page.

0 votes

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
× 10,938

Question asked: Jul 30 '15, 8:11 a.m.

Question was seen: 2,490 times

Last updated: Jul 31 '15, 2:25 a.m.

Confirmation Cancel Confirm