How Can I know the current user is or is not the Owner of the gadget ? Or , How i get the current user , or How can i get the owner of the gadget ? ? Thanks .
Current user :
com.atlassian.crowd.embedded.api.User user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
Not sure what you mean by gadget owner.
Thanks, i set an args key:user, ajaxOptions return /rest/gadget/1.0/currentUser , and i can use args.user[username] to fetch current username .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.