Adding Advanced Roadmaps Team Field to Text Email Templates

Stephen Davis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2024

Hi hi,


I'm trying to add the Advanced Roadmaps Team field to the Jira text email templates. 

I can add the field, but it only shows the field value's ID (e.g., 289), not its title (e.g., IT).

What I currently have:

#set ($team = $customFieldManager.getCustomFieldObject("customfield_15240")) 
#if ($issue.getCustomFieldValue($team))
$stringUtils.leftPad($team.name, $padSize): $issue.getCustomFieldValue($team)
#end

 Hopefully something simple I'm missing, any help is appreciated.

2 answers

1 accepted

0 votes
Answer accepted
Stephen Davis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 15, 2024

Adding $issue.getCustomfieldValue($customfield).description.title is what is needed.

#set ($customfield = $customFieldManager.getCustomFieldObject("customfield_10200")) 
#if ($issue.getCustomFieldValue($customfield))
$stringUtils.leftPad($customfield.name, $padSize): $issue.getCustomFieldValue($customfield).description.title
#end

 

0 votes
Carla Ann K_ Rowland October 10, 2024

Hi: Here is a link to the API documentation: Swagger UI (atlassian.com)  Drill down on the Team DTO. if I interpreted it correctly, it is called Title instead of Name

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.12.12
TAGS
AUG Leaders

Atlassian Community Events