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

Assigning a document number to Attachments Confluence


A team in our organization has heavily relied on the ability of a document to be assigned a document id number when uploaded to a particular SW dev lifecycle tool. The uploaded document then is stored as:     

       <Document Id: ><Document Name>

Document Id can then be searched within the system and is usable for referencing outside of Confluence as well as within other attached documents.  This is legacy process for this team that at this time, is difficult to give up.

Is their an add on that can provide this functionality either out of the box or via scripting ?

Perhaps, a customized 'Attachment' macro (or the ability to build one) that has the scripting added to concatenate a document id to the attachment file being updated (done only once, i.e., preserved thru the versions).

Thank you.




1 answer

Hey Sonja! 

Would you mind expanding on how you are defining the Document Id to assign to the attachment name? 


Hi Lee,

Our team does not yet have a defined manner in generating the doc id but, the plan is that it would be available for retrieval from outside of the script that does the appending of the doc id to the file name to be uploaded (attached) to a confluence page.

Document would be visible via the attachment macro like this: 

docxxxx: myfile.txt

Thank you.


Suggest an answer

Log in or Sign up to answer
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...

4,120 views 4 6
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