Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Boja Consulting BOJA Technology add-ons come with a high quality 24/5 support

Common support questions

Table of Contents
minLevel1
maxLevel2
outlinefalse
styledisc
typelist
printabletrue

How do I export sub-tasks custom fields?

Jira issue data only includes a small subset of fields for sub-tasks (see picture below). With the handlebar helper jExtend all fields can be exported including custom fields (see examples below).

Jira issue sub-task data (View Data tab)

...

Export handlebars

Code Block
{{#each fields.subtasks}} 

//subtask simple text, number custom field
{{{jExtend key "renderedFields.customfield_10031"}}}
 
//subtask date custom field
{{jDate (jExtend key "fields.customfield_10033") "YYYY-MM-DD"}}

//subtask multiselect custom field
{{jArray (jExtend key "fields.customfield_10039") 'value'}}

//subtask html custom field
{{{jHtml (jExtend key "renderedFields.customfield_10031")}}}

//subtask description
{{{jHtml (jExtend key "renderedFields.description")}}}

//if statement on subtask type
{{#ifeq fields.issuetype.name "Sub-task"}} is Sub-task{{/ifeq}}

{{/each}}