Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert last modified data value from other pages

Andrii Stepura
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 14, 2018

Hi, maybe whoever know is - how possible pull last modified data value from other pages?

2 answers

0 votes
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2018

Hi Andrii,

This user macro could help:

## @param Page:title=Page|type=confluence-content|required=true|desc=Choose Page to get last modified date for
#set ( $colonIndex = $paramPage.indexOf(":") )
#if ( $colonIndex == -1 )
#set ( $spaceKey = $space.key )
#set ( $pageName = $paramPage )
#else
#set ( $spaceKey = $paramPage.substring(0, $colonIndex) )
#set ( $pageNameIndex = $colonIndex + 1 )
#set ( $pageName = $paramPage.substring($pageNameIndex) )
#end
#set ( $requestedPage = $pageManager.getPage($spaceKey, $pageName) )
$action.dateFormatter.formatDateTime($requestedPage.lastModificationDate)
0 votes
Thomas Deiler
Community Champion
February 14, 2018

Dear @Andrii Stepura,

there is a macro called "Include Page". That could help.

So long

Thomas

Andrii Stepura
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 14, 2018

Hi, Thomas. But I need just modified data stamp, not all content as described in this macro docs - https://confluence.atlassian.com/doc/include-page-macro-139514.html
p.s.: same problem with Excerpt and Excerpt Include.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events