I have been investigating a way to programmatically add to Space Shortcuts (see attached screenshot) as part of our space templating process. Ideally, it would this would be an available REST API to make this call but I haven't found one that exists.
I reaching out to the community for any ideas for a work-around that would allow for Automation.
I found the below in another post, but it is for Confluence Server
Please look "Programmatically creating a shortcut link" here: https://developer.atlassian.com/confdev/tutorials/adding-space-shortcut-links
I've tried Selenium but it does not play nice with Confluence.
Any other hidden gem work arounds or undocumented calls to make this programmatic?
Any help is greatly appreciated!
Hey there, @Pete Dunham !
The first thing we want to look into is the network activity that happens when we add the Space Shortcut. Here is a GIF of what I did:
So, what is happening is:
We are looking at the network activity, specifically of the moment that we click Add Shortcut and Save buttons
We need to look into the Batch that shows up right after clicking Add Shortcut and the CGRAPHQL that shows when we click Save.
The Batch contains the info that we need to later use in variables in the CGRAPHQL. You will notice that the CGRAPHQL does not contain values, but references. Those are inside the Batch.
Here, screenshots of what you should see inside them:
All this happens while we are already authenticated in the browser. So the authentication is also something we need to take care of.
If you need more insight than that, you might need to reach out to our Developer Community, as pointed out by @Shannon Spaniol! Here is the link to our Developer Community:
I hope this sheds some light into your quest, Pete!
Thanks for reaching out! I'm not really sure about this myself, but we have a separate community for our Atlassian Developer universe; you might have better luck raising a question there as well.
See Atlassian Developer Resources for that site as well as a list of other pages that could help you.
Hi Atlassian Community, Remote work has shifted how teams collaborate, and we’ve heard from many of you that Microsoft Teams has become mission critical to many of your workflows, from how you chat...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events