List All Label Names?
Moderator: SourceGear
-
- Posts: 25
- Joined: Tue Mar 16, 2010 8:54 am
- Location: Seattle, WA
List All Label Names?
Hello,
Is it possible to get a list of known label names from Vault? I see all the ways I can work with labels if I know what the label is actually named but if I don't have this information I need a way to get it in order to use the other calls surrounding the label functionality.
What I'd like to use this for is to create a deployment client that could migrate groups of files through different levels of 'readyness' that exist within our repository (e.g. development, unit test, QA, certification, release) where the only thing the files would have in common is a label assigned by the developer, these files are located throughout the Vault repository - they not all in the same folder and keeping them all in one folder would not work with the way things have been set up.
If there is already a better way to do this that doesn't re-invent the wheel I'd like to know about that as well.
Thank you!
-CoffeeNerd
Is it possible to get a list of known label names from Vault? I see all the ways I can work with labels if I know what the label is actually named but if I don't have this information I need a way to get it in order to use the other calls surrounding the label functionality.
What I'd like to use this for is to create a deployment client that could migrate groups of files through different levels of 'readyness' that exist within our repository (e.g. development, unit test, QA, certification, release) where the only thing the files would have in common is a label assigned by the developer, these files are located throughout the Vault repository - they not all in the same folder and keeping them all in one folder would not work with the way things have been set up.
If there is already a better way to do this that doesn't re-invent the wheel I'd like to know about that as well.
Thank you!
-CoffeeNerd
Murray Williams | Starbucks Coffee Company
Re: List All Label Names?
There's no easy way to do this with the API or other Vault Clients. You can use the show labels command from the Vault GUI client to list labels recursively from root or another folder. This will show you all the label paths and label names, but you'd need to manually write down all the labels, since there's no way to copy this.
I've logged feature request 15326 for this functionality.
I've logged feature request 15326 for this functionality.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
-
- Posts: 25
- Joined: Tue Mar 16, 2010 8:54 am
- Location: Seattle, WA
Re: List All Label Names?
Thank you Linda, much appreciated.lbauer wrote:There's no easy way to do this with the API or other Vault Clients. You can use the show labels command from the Vault GUI client to list labels recursively from root or another folder. This will show you all the label paths and label names, but you'd need to manually write down all the labels, since there's no way to copy this.
I've logged feature request 15326 for this functionality.
I'm new to Vault, currently evaluating it for our use; is there a fair chance that this feature request could appear in a not-too-distant release of Vault?
-CoffeeNerd
Murray Williams | Starbucks Coffee Company
Re: List All Label Names?
It's hard to say. It depends on what other features they might be considering, and how much development time we have for the next release. Wish I could be more specific.
If other users see this post and would like this feature, please let us know. The more requestions we have for this feature, the more likely we are to implement it
If other users see this post and would like this feature, please let us know. The more requestions we have for this feature, the more likely we are to implement it
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Re: List All Label Names?
I actually have a couple routines that do this (for different display-purposes).
I will post them, if you are interested.
You should know, however, that I recommend executing the query at the "project" level, and not at the root of repository, as the underlying API functions can take a while.
I will post them, if you are interested.
You should know, however, that I recommend executing the query at the "project" level, and not at the root of repository, as the underlying API functions can take a while.
-
- Posts: 25
- Joined: Tue Mar 16, 2010 8:54 am
- Location: Seattle, WA
Re: List All Label Names?
Hi Surak8,
We are finally on Vault now and I would be interested in these, thank you!
We are finally on Vault now and I would be interested in these, thank you!
surak8 wrote:I actually have a couple routines that do this (for different display-purposes).
I will post them, if you are interested.
You should know, however, that I recommend executing the query at the "project" level, and not at the root of repository, as the underlying API functions can take a while.
Murray Williams | Starbucks Coffee Company
Re: List All Label Names?
I find this feature would be helpful, too. Please, announce if you will be going to implement it in future. TIA
Re: List All Label Names?
Thanks, I've added your "vote."
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Re: List All Label Names?
Hey Linda,
Is this feature available now?
Is this feature available now?
Re: List All Label Names?
Is this feature available now?
Re: List All Label Names?
One can already retrieve labels applied at objects using the BeginLabelQuery(), GetLabelQueryItems_*() and EndLabelQuery() API for a folder or any object found under a folder using the API. If you also knew a label name, you could also use the the HistoryBegin(), HistroyFetch() and HistoryEnd() API looking for just labels on a specific folder.
In regards to the idea in CoffeeNerd's 2nd paragraph, unless I'm misunderstanding something in the write-up, this functionality was added back in Vault 7's Folder Changes Archive
In regards to the idea in CoffeeNerd's 2nd paragraph, unless I'm misunderstanding something in the write-up, this functionality was added back in Vault 7's Folder Changes Archive
Jeff Clausius
SourceGear
SourceGear
Re: List All Label Names?
Is it still not possible to show all labels of a project with the .NET API?lbauer wrote:There's no easy way to do this with the API or other Vault Clients. You can use the show labels command from the Vault GUI client to list labels recursively from root or another folder. This will show you all the label paths and label names, but you'd need to manually write down all the labels, since there's no way to copy this.
I've logged feature request 15326 for this functionality.
Re: List All Label Names?
FYI
I posted a solution on Stack Overflow --> http://stackoverflow.com/questions/3822 ... 0#38241920
I posted a solution on Stack Overflow --> http://stackoverflow.com/questions/3822 ... 0#38241920
Re: List All Label Names?
On lbauer's comment, that was from back in 2010, and the function that can do it now didn't exist then. Thanks for posting your solution. I'm sure others will find it useful.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support