I wanted an easier way to shorten links from inside a confluence Page. Shortened links (using Bit.ly and similar tools) help in analytics as well. I have used bit.ly API for shortening of the links.
What it does
This macro shortens any URL given by the user. It uses URL shortener bitly API for shortening. The link analytics (click stats) can be accessed on bit.ly dashboard.
How I built it
I built it using Atlassian forge. The application is coded in node.js/typescript. The macro is deployed on a confluence cloud server.
Accomplishments that I'm proud of
I was able to do achieve URL shortening as well as analytics using this macro. The user can also edit the link provided.
What I learned
I learned about Forge API and UI elements. Forge helped me in building applications for atlassian products in a short period.
What's next for Link Shortener Macro
I want to integrate other URL shortener APIs and also deploy this macro for JIRA and other platforms as well.