I'm wondering how do I apply a filter on a Nunjucks?

Lucca Fernandes March 9, 2023

Good morning,

I'm wondering how do I apply a filter on a Nunjucks?

My situation is as follows:

I have an Epico issue, where I have several other child items inside it.

I would like that in my Nunjecks I could bring the Summary information like this:

{{issue|membersOfInitiative| field("fields.summary")}}

However, as I have more than one child item in my epic, it ends up bringing all the Summary concatenated.

I would like to be able to apply a filter, where it would only bring the Summary of the specific item type (issuetype.id: 10086).

So I only have one piece of information.

1 answer

0 votes
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 14, 2023

Hi @Lucca Fernandes ,

try this:

{{issue | membersOfInitiative("issuetype") | filter(["fields.issuetype.id",10086]) | field("fields.summary")}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events