Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

Say I have a checkbox field or multi select field (e.g. called 'Equipment') and I want to show a list of all selected values in a comment that's being added, what's the correct Smart Fields syntax for this?

This does not work:

{{issue.fields.Equipment}}

I would like this to print: Computer, Monitor, Mouse 

Step-by-step guide

To print out multi-value fields you need to use the mustache list iteration syntax.  The exact expression depends a bit on the type of field.  Here's some examples:

Field typeSmart Field syntaxWhat it prints
Checkbox, Multi Select
{{#issue.fields.Equipment}} {{value}}{{/}}
Computer Monitor Mouse
Checkbox, Multi Select
{{#issue.fields.Equipment}} {{value}}{{^last}},{{/}}{{/}}
Computer, Monitor, Mouse
Multi User select
{{#issue.fields.QA Tester}} {{displayName}}{{/}} 
Barney Rubble Fred Flintstone
Labels
{{#issue.fields.labels}} {{.}}{{/}}
label1 label2 label3



  • No labels