Unable to get the logged in user details
One answer
System.out.println("Logged in as: " + teamRepository.loggedInContributor().getName());
Comments
Thank you Ralph Schoon for your quick response.
You don't crate it, you get it.
I would strongly recommend to read this post https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ it explains how to get the ITeamRepository from the TeamPlatform. You can also look into the links there and you can look into the snippets that come with the PlainJavaClientLibraries.
The same question came up some days ago and the same suggestion was made.
Alternatively you can read https://jazz.net/library/article/1229
Thank you.
I am sorry, but if you don't follow the links suggested above and don't educate yourself e.g. by going to the Plain Java client Library snippets and trying to understand the basics of how this works, there is little forum members will be able to do to help you.
If you are not logged into the TeamRepository with a user, you can quite obviously not get the logged in user.