I'm a developer working on a project and have never used Confluence before. Is there a way to add some custom javascript or a little snippet to a confluence page to let me grab the current user's info and then pass that along?
Details:
1) Confluence web page has a button.
2) When a user clicks that button, I want to use the confluence api to grab the user's info, open a new window to the url with the user's info attached as the query string.
Basically, I just want to know if there's a way add a snippet using the confluence api. I have the api method I need, but am having trouble figuring out how it can be added to the page. One of our customer's uses Confluence for their company and is requesting this feature.