cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

The command or Command parameter to retrieve Dynamic Group Membership specific to Project

The command or Command parameter to retrieve Dynamic Group Membership specific to Project

Currently, 'im viewdynamicgroup' or 'im dynamicgroups' will give list of all projects and its membership for the given dynamic groups, that needs to be parsed for specific project information.

There is no direct option available with this commands to mention specific project, we need to iterate through each and find our project and then its membership.

current_dyna_group_command.JPG

Here, we are proposing to add any parameter like --project for these both dynamicgroup commands, in which we can add the "im project" name and get the dynamic group membership for that project only.

Example:

im dynamicgroups --field=membership --project="<IM_PROJECT_NAME>" "Dynamic_Group_Name"

 

im viewdynamicgroup --membershipFilter=<IM_PROJECT_NAME> "Dynamic_Group_Name"

5 Comments
BaluSri
6-Contributor

You can add a pipe and run a "findstr" command with the <IM_PROJECT_NAME> value:

 

im viewdynamicgroup "Dynamic_Group_Name" | findstr "IM_PROJECT_NAME>"

KartikOak
15-Moonstone
Status changed to: Clarification Needed

Hi Amit,

                  Checking if the alternative proposed on this thread has worked and resolved this Idea?

 

Thanks

Kartik

 

int2020
7-Bedrock

Hello Kartik,

 

the alternatives are there, like once data is collected. we need to filter on project separately. However, Idea is to get the option in command so, it will reduce the load as well as save filter steps.

I was working with API as well, there this new option can be helpful.

 

Thanks.!

KartikOak
15-Moonstone
Status changed to: Acknowledged

Thanks for the response. Do note that this is not a top priority item based on our current long-range plan.

 

Thanks

Kartik

int2020
7-Bedrock

okay.!