With library version loaded in gradle: implementation( "org.jetbrains:space-sdk-jvm:66755-beta" ), I am attempting to request the tz property of the profile's location, but neither timezone() nor tz() are functions on TD_MemberLocationPartial:
If I try to acess the tz property without adding timezone(); tz(); above, then I have the exception from below:
getProfile->locations->[0]->location->tz
java.lang.IllegalStateException: Property 'tz' was not requested. Reference chain:
getProfile->locations->[0]->location->tz
at space.jetbrains.api.runtime.PropertyValueKt.getValue(PropertyValue.kt:28)
at space.jetbrains.api.runtime.types.TD_Location.getTz(TD_Location.kt)
That's because tz is not in TD_MemberLocation, but in the TD_Location inside the location field. To request it, you need to write location { tz() } instead of just tz()
With library version loaded in gradle:
implementation( "org.jetbrains:space-sdk-jvm:66755-beta" )
, I am attempting to request thetz
property of the profile's location, but neithertimezone()
nortz()
are functions onTD_MemberLocationPartial
:spaceClient.teamDirectory.profiles.getProfile( profileId ) { defaultPartial(); id(); emails { defaultPartial(); id(); email() }; name { firstName(); lastName() }; locations { defaultPartial(); id(); timezone(); tz(); }}
If I try to acess the
tz
property without addingtimezone(); tz();
above, then I have the exception from below: