Hi,
When I compile my code, I take this error message:
com.atlassian.jira.user.ApplicationUser cannot be converted to com.atlassian.crowd.embedded.api.User
for this line:
It does help to actually click on the documentation link I added in my response… but let me copy that verbatim for you:
toDirectoryUser
@Nullable
public static com.atlassian.crowd.embedded.api.User toDirectoryUser(@Nullable
ApplicationUser user)
Does a null-safe conversion from an application user to a directory user.
Parameters:
user - the ApplicationUser
Returns:
the corresponding Directory user