It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Documentation Version Numbers

Hi Everyone,

We have started using Confluence recently and we need your help on one issue:

We want to advance our documentation process just like in the below.

process.jpg

We want it to continue like v.1-v.1.1-v.1.2.

We would be glad if anyone can tell us how we can do this process.

Thanks,

2 answers

2 accepted

0 votes
Answer accepted

Hi @Murat_Engin_Aksungur ,

I work with the team that makes the Scroll Versions app. There's no great way to control the versioning on a page level, since Confluence handles it automatically, but you could use our app to have a space-wide version, where you can use whatever version numbering you'd like.

We also have this guide for writing documentation in Confluence, which might be helpful for your team: https://www.k15t.com/rock-the-docs

Hi all,

With the code below, we have successfully created the documentation version numbers.

I am also adding the image.

## @noparams

#set($containerManagerClass=$content.class.forName('com.atlassian.spring.container.ContainerManager') )

#set($getInstanceMethod=$containerManagerClass.getDeclaredMethod('getInstance', null) )

#set( $containerManager=$getInstanceMethod.invoke(null,null) )

#set( $containerContext=$containerManager.containerContext )

#set( $pageManager=$containerContext.getComponent('pageManager') )

#set( $allVersions=$pageManager.getVersionHistorySummaries($content) )

<table>

<tr>

  <th>Tarih</th>

  <th>Version</th>

  <th>Modifiye Eden</th>

</tr>

#foreach( $version in $allVersions )

<tr>

  <td>$action.dateFormatter.formatDateTime($version.getLastModificationDate())</td>




#set ( $cV =  -1+$version.getVersion())

#if ($cV<5)

<td> v1.$cV</td>

#end

#if ($cV>=5 && $$cV<10)

#set($mdx=-5+$cV)

<td>v2.$mdx</td>

#end

#if ($cV>=10)

#set($cdx=-10+$cV)

<td> v3.$cdx</td>

#end




<td>#usernameLink($version.getLastModifierName())</td>

</tr>

#end

</table>

process2.jpg

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

2,117 views 4 5
Join discussion

Community Events

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

Events near you