Looking for a search to find all Configuration Items assigned to a user's current team.
I have created a series of searches similar to the one I am looking for:
I created one that says: Configuration Item.Primary User Full Name = CurrentUserDisplayName() to find the CI's that I am the Primary User for.
I created another that says: Configuration Item.Owned By = CurrentUserDisplayName() to find the CI's that I own.
I created another that says: Configuration Item.Owned By Team = CurrentUserDefaultTeamName() to find the CI's that my team owns.
Now I am simply looking to find the CI's that members of my team are assigned to.
Ex. I am assigned to PC1234; John is assigned to server WINDOWSTEST; Mark is assigned to database SQLTEST.....
Appreciate any help, thank you!
Try: CurrentUserRecID IsMemberOf Config.OwnedByTeamID (assuming you are capturing the Team id in the Config Items)
This did not work for me. Thanks
I keep forgetting that unlike expressions, Searches must use a field in the left, and not a system function or expression.
Try the ownership clause:
This is good, but I am looking for all Configuration items that have the Primary User assigned to a member of my team. This doesn't refer to ownership.
You will need the recid of the User Info to use team membership. Customer records are not members of teams(maybe workgroups, but not teams).
Is Primary User from the customer table or user table?
If user table, then PrimaryUserRecID IsMemberOf CurrentUserDefaultTeamID()If customer table, then you need to capture the user recid in the customer table, then bring in recid into config.
There may be another way, but I'm not sure what it is.