Abstract

This code snippet filters values from a multi-valued field based on a condition

Logic

Use the "filter" Nunjucks filter to filter the values that meet the condition

Snippet 

{# Filter the values from the multi-valued field using "filter" filter #}
{{ issue.fields['<Multi-valued field name>'] | filter(<Condition>) | join(",","name") }}

Placeholders

PlaceholderDescriptionExample
<Multi-valued field name>Name of the multi-valued fieldWatchers
<Condition>Condition to meet for the value to be filtered{accountId:'accountId:5ca5b1469a000c1180956957'}

Context

The output of this snippet is a subset of the existing values of a multi-valued field which you could use in a template to:

References

Related articles


Related issues