Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Export word plugin


My plugin performs export of selected pages to word document.

It is my atlassian-plugin.xml

<?xml version="1.0" encoding="UTF-8"?>

<atlassian-plugin key="${atlassian.plugin.key}" name="${}" plugins-version="2">
<vendor name="${}" url="${project.organization.url}"/>
<xhtml-macro name="spec" class="com.atlassian.confluence.Macro.ExampleMacro" key="my-macro1">
<parameters>parameter name="page" type="confluence-content"</parameters>
<resource type="i18n" name="i18n" location="${atlassian.plugin.key}"/>
<resource type="velocity" name="template1" location="/templates/firstpart.vm"/>
<resource type="velocity" name="template2" location="/templates/second.vm"/>
<resource type="velocity" name="template3" location="/templates/third.vm"/>
<resource type="velocity" name="template4" location="/templates/fourth.vm"/>
<resource type="velocity" name="template5" location="/templates/five.vm"/>
<resource type="velocity" name="template6" location="/templates/six.vm"/>
<resource type="download" name="image002.gif" location="/templates/image002.gif"/>
<web-resource key="somekey" name="some description">
<resource type="download" name="spec.js" location="/templates/spec.js"/>
<web-item name="Export Spec" i18n-name-key="" key="export-spec" section="system.content.action/secondary" weight="1000">
<description key="export-spec.description">The Export Spec Plugin</description>
<label key="Export Spec"/>
<link linkId="export-spec-link">/WebWork/specsearch/specsearch.action?pageId=$</link>
<xwork name="specbuild" key="specbuild">
<package name="specsearch" extends="default" namespace="/WebWork/specsearch">
<default-interceptor-ref name="defaultStack"/>
<action name="specsearch" class="com.atlassian.confluence.WebWork.SpecSearchAction">
<result name="success" type="velocity">/templates/display.vm</result>

My plugin was implemented in following way:

1. User select some page and click on Export button (Web Item)

 2. It invokes XWork action.

3. XWork action redirect to velocity template and pass parameter Current Page.

4. Velocity template generates html with contents of pages.

5. At the end of velocity template appears export button.

It is very complicated. I'd like to perform export different way:

1. User select some page

2. Click on Export button and as result will created word document with content of all pages that appear under selected page.

How can I do It?

Thank you,


1 answer

0 votes
Dominic Lagger Community Leader Jun 10, 2021

Hi @Viktorya Thinman 

Perhaps it would be better to ask this question in the developer community. 

Regards, Dominic

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Miss the Confluence demos at Team 21? Watch them here!

Phew, Atlassian Team 2021 blew by. With dozens of demos and a handful of keynotes, you may have missed some of the awesome Confluence Cloud sessions. Don't' worry, you can watch them all here or on Y...

393 views 2 6
Read article

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