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.
ソリューション
このページの内容はサポート対象外のプラットフォームに関連しています。したがって、アトラシアン サポートではこのページの記載内容のサポートの提供は保証されません。この資料は情報提供のみを目的として提供されています。内容はお客様自身の責任でご利用ください。
- 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.single-word-css.vm
- Defines the html styles used for exportsingle-word-header.vm
- Defines the header part of the exported documentsingle-word.vm
- The content part of the exported documentsingle-word-footer.vm
- The footer part of the exported document
- Open these files in your favorite text editor and make the required changes and save it.
- アプリケーションを再起動します。
There is a New Feature for this functionality to be handled within the core of JIRA applications, as tracked at: - JRA-12813Getting issue details... STATUS Please vote and watch that issue if you're interested in the functionality.
Example: Changing Word Export to A4 size
- Access single-word-css.vm.
- 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;
} Save and restart your JIRA application.
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