Hi,
I am developing a standalone gadget for JIRA with HTML and JavaScript. In which I wish to use json to get the username of current dashboard via REST API to realize the authorization.
I am figuring out how to get this attribute via REST api but after my looking up for several documentations I could not find it....Is there anyway could realize that function?
Thank you so much!
Mona
The gadget itself has an option to OAuth itself to JIRA (https://developer.atlassian.com/display/GADGETS/Using+the+Atlassian+Gadgets+JavaScript+Framework).
<Require feature="oauthpopup" />
Hi Timothy,
I know the OAuth technology but mine is a standalone one in which I did not use the JIRA framework... Therefore this option does not apply in my case...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If that's the case, i doubt that you can get the username. You could try to read off the <head> tag. There is a <meta> tag with username.
<meta name="ajs-remote-user" content="xxx">
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi! I have found the attribute you mentioned. But what I need is the dashboard owner which could not be found....
Also, I have found there is corresponding JIRA API in Java to access the dashboard owner name. But I am still figuring out how to integrate plugin in Java and Gadget in Java-Script....Do you have any idea about that?
Here are the reference links:
https://docs.atlassian.com/software/jira/docs/api/latest/com/atlassian/jira/portal/PortalPage.html
Thank you so much!
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.