Does anyone have an example of how to execute a non-anonymous issue search using the SearchService from within a JIRA REST plugin? All the examples are for anonymous access.
I need to be able to perform a non-anonymous search, so need a user object to pass into the search.
The REST api will be called from within a Gadget plugin.
How do I do this?
Thanks
You can retrive the current user from JIRAAuthenticationContext, assuming the user is logged in when he access the gadget. If not, you might want to find one of the users using UserUtil and use that object.
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.