Our monitoring system generates alerts, into which I'd like to put a link to Confluence for the alert in question. Since we create alerts all the time, the Confluence pages for them aren't yet written though, so I'd like to pro-actively like to put a link to where the page will be, if someone writes it (yes, I know you can argue the doco should get written first, but it isn't, so we've got to work with it).
The URLs of Confluence pages are no longer predictable because of the PageID (this wasn't the case some years ago, but never mind..)
If the alert has no page created, then obviously I'd expect Confluence to return a 404 type message. However, for pages that have been created, I'd like the user to end up there as normal.
All the alert documentation will be below a specific ancestor page, which already exists, so I know the URL/pageID for it.
By way of an example, let's say I have an alert called "disk_space". I'd like to generate a URL something like:
(the actual page will called "Monitoring: disk_space")
Onto possible solutions:
The PageIDs aren't predictable, so I think I'm out of luck there.
Short URLs (like the share URLs) are based on PageID, so I'm out of luck there too.
The search feature is quite close to what's required. I can perform a search with:
This returns at most one or two results, but there's apparently no way to do an "I'm feeling lucky" to immediately go to the first result.
Are there any other ways to work out a (possibly non-existent) page URL and send the user there?
Welcome to the community!
Just to clarify, you have an alert system that sends notifications with links to confluence pages. However, new alerts get created on the fly, so in most cases no links to confluence exist. Is this correct? Are the alerts created by you?
I think that the only solution is to create the confluence page right away manually with no content when new alerts get created and add the link.
Yes, you're right - the monitoring system would like to generate the URLs, even if the pages don't yet exist.
It does seem I'm out of luck here. An "I'm feeling lucky" search feature would probably solve it quite nicely (ie. for pages that exist, it'd go straight there, for those that don't, the user at least gets to see some other, possibly relevant, pages).
For now I'm going with links to search results - it's the best that's possible, without having to create dozens of (probably empty, or at least "under construction") pages and then have some sort of lookup feature in the monitoring tool to look up the correct link for the alert in question.
Thanks for your suggestions :-)
Calling all collaborators! Appy Hours on the Atlassian Community is a monthly event where 4 Partner and app vendor presenters go head-to-head with 5-minute demos for the title of Best App Demo. I...