Customise word export template for JIRA applications

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

背景

This KB article outlines how to customise the output from JIRA applications while exporting issues to Word documents.

ソリューション


このページの内容はサポート対象外のプラットフォームに関連しています。したがって、アトラシアン サポートではこのページの記載内容のサポートの提供は保証されません。この資料は情報提供のみを目的として提供されています。内容はお客様自身の責任でご利用ください。

  1. The output of word export is controlled by the four velocity templates located at atlassian-jira/WEB-INF/classes/templates/plugins/issueviews located under JIRA applications Installation Directory. 
    1. single-word-css.vm - Defines the html styles used for export
    2. single-word-header.vm - Defines the header part of the exported document
    3. single-word.vm - The content part of the exported document
    4. single-word-footer.vm - The footer part of the exported document
  2. Open these files in your favorite text editor and make the required changes and save it.
  3. アプリケーションを再起動します。

There is a New Feature for this functionality to be handled within the core of JIRA applications, as tracked at:  JRA-12813 - Getting issue details... STATUS  Please vote and watch that issue if you're interested in the functionality.

Example: Changing Word Export to A4 size

  1. Access single-word-css.vm.
  2. Open in a text editor and Add the following css under <style type="text/css">:

    @page
    {
    /The A4 paper size is 210 mm wide by 297 mm long/
    size: 210mm 297mm!important;
    }

  3. Save and restart your JIRA application.


tip/resting Created with Sketch.

This article is valid only for Server version of JIRA, if you have a Cloud installation you won't be able to follow these instructions

最終更新日 2021 年 7 月 20 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.