We have an automation in place that will send an e-mail to the page owner if the page is not updated for more that 90 days. We use the following template:
Please review <a href="{{page.url}}">{{page.title}}</a> in confluence as the page was last updated on {{page.dateLastUpdated}}, and if it is up-to-date (again) please set the status from {{page.status}} to 'Verified'.
It sems that the {{page.url}} is not giving the correct URL (It gives back https://nedschroef.atlassian.net/spaces/GITKB/pages/3243900930 but is should be https://nedschroef.atlassian.net/wiki/spaces/GITKB/pages/3243900930 ) It seems that the smart value is missing the /wiki part.
Hi @Eric Vervoordeldonk ,
I tried "{{page.url}}" and it gives the correct url. If you still have the issue, please contact Atlassian Support directly from https://support.atlassian.com/contact/#/
As a workaround, you can make use of below content in smart values.
Please review <a href="https://nedschroef.atlassian.net/wiki/spaces/{{page.space.key}}/pages/{{page.id}}">
{{page.title}}</a> in Confluence as the page was last updated on {{page.dateLastUpdated}}, and if it is up-to-date (again) please set the status from {{page.status}} to 'Verified'.
Looks like a bug. Please try to use {{content.url}} instead {{page.url}} and see if result is the same. If yes, you should ask Atlassian Support (https://support.atlassian.com) to clarify it.
Regards,
Seba
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.
Until Atlassian rolls out the fix, you could just use the "replace()" method on the URL to replace the first occurrence of "/spaces/" with "/wiki/spaces/".
It may be easier that building up the complete URL from smart value, and when the fix is out, you can just drop the "replace(...)" from the end of your temporary expression.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey there @Eric Vervoordeldonk ,
Can you clarify if your Automation rule is using Branches?
If that's the case, you should use the List Smart Value instead of Pages:
{{authorInactivePages.url}}
The "Notify people about inactive pages when scheduled (recurring)" Template can be used as a reference.
Hope this helps! =]
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.
Ah yes, in that case a {{page.url}} should be the appropriate Smart Value.
Please open a Support ticket so we can investigate this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Eric Vervoordeldonk , thanks for your post.
Have you tried also https://support.atlassian.com/cloud-automation/docs/smart-values-in-confluence-automation/#Content-properties--pages-and-blogs-
{{content.url}}
to see if this smart value has the same issue / problem?
In any case, please open a support ticket to Atlassian, who would need to correct this - https://support.atlassian.com/contact/#/
If the content.url works as a workaround, great, but Atlassian should be made aware of this missing 'wiki' from page.url smart value.
Cheers
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.