Method getAllSecurityLevelsForUser are working?

Hello there,

I try get list of sec levels of users in jira server but it always empty.
Link for interface: https://docs.atlassian.com/software/jira/docs/api/7.13.8/com/atlassian/jira/issue/security/IssueSecurityLevelManager.html#getAllSecurityLevelsForUser-com.atlassian.jira.user.ApplicationUser-
Link for implementation: https://docs.atlassian.com/software/jira/docs/api/7.13.8/com/atlassian/jira/issue/security/IssueSecurityLevelManagerImpl.html#getAllSecurityLevelsForUser-com.atlassian.jira.user.ApplicationUser-

Method for get all sec levels work well. Someone can check getAllSecurityLevelsForUser method? Maybe that method not implemented?

P.S. I checked user account. It is not empty and has bounded sec level in UI.

Best regards,
Andrey

This wasn’t in a real instance, but just to give you another data point…

Using SDK 8.0.16 and JIRA 8.5.0, I quickly ran the following:

ComponentAccessor.getIssueSecurityLevelManager()
                 .getAllSecurityLevelsForUser(ComponentAccessor.getUserManager().getUserByName("admin"));

It returned an empty collection.

1 Like