Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,671
Community Members
 
Community Events
184
Community Groups

using Assets custom fields in nunjucks

schneich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Mar 31, 2023

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 _Appfire_: 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

1 answer

1 accepted

3 votes
Answer accepted
David Fischer _Appfire_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 31, 2023

Hi @schneich ,

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) }}
schneich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Mar 31, 2023

Hi @David Fischer _Appfire_ ,

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

Suggest an answer

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

Atlassian Community Events