Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Dear community,
I need to send a custom email in one transition. I want to use nunjucks to put some variables into that email.
One of the variables is a custom field, which provides an objecttype out of Assets.
I can use this:
{{ issue.fields.customfield_10092 | first | dump(2) }}
which will result in
{ "workspaceId": "510f14bb-3b12-4179-b1a9-9293d1aa981e", "id": "510f14bb-3b12-4179-b1a9-9293d1aa981e:14991", "objectId": "14991" }
Within the email, I would like to have the name of that object: "CLL - Linde F".
@David Fischer: How do I access the name of the Assets object in the custom field? (Sorry to address you directly: I am using the JMWE app...)
Thank you very much,
Chris
Hi @Christian Schneider ,
you can use the insightFieldValue Nunjucks filter for that. You can try this to figure out how to retrieve the data you want:
{{ issue | insightFieldValue("customfield_10092") | dump(2) }}
Hi @David Fischer ,
thank you very much for your quick response and the link to the custom filters.
This worked fine:
{ issue | insightFieldValue("customfield_10092") | first | field("label") }}
best regards,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.