0
JIRAのPDFエクスポートを速度で作成しました(PDFビュー拡張を使用)。nullの場合のベロシティカスタムフィールドスキップ
#foreach($issue in $issues)
<fo:table-row>
<fo:table-cell border="thin solid #000" padding="0.5em" number-columns-spanned="2">
#set($value = $xmlutils.escape($issue.key))
<fo:block>$value</fo:block>
</fo:table-cell>
<fo:table-cell border="thin solid #000" padding="0.5em" number-columns-spanned="5">
#set($customField = $customFieldManager.getCustomFieldObject("customfield_10008"))
<fo:block>#cfValue($customField)</fo:block>
</fo:table-cell>
</fo:table-row>
だから、基本的に私は、カスタムフィールドがnullであるかどうかを確認したい、:カスタムフィールドがnullの場合、それはすべての非常にスムーズに行っています
は、しかし、私のテンプレートのいずれかで、私はデータを挿入スキップしたいですその場合は、その項目をテーブルに追加しないでください。
アイデア?
あなたの助けをありがとう、私は少しそれを変更する必要がありましたけれども: 'の#set($値2 = $ customFieldManager.getCustomFieldObject( "customfield_10008")のgetValue ($ issue)) ' – TomBridges