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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.