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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.