Hi,
how can i add custom fieds to issue summary?
i've found this: http://confluence.atlassian.com/display/JIRA043/Adding+Custom+Field+to+Issue+Summary
which is outdated and refers to that: http://forums.atlassian.com/message.jspa?messageID=257247681
which cant help me as i want to add custom date fields...
any help is highly appreciated!
Thanks,
Andreas
Here is an example that works in 4.3:
#*
Add Custom Field to the right side of Details panel
*#
#set ($prnew=$customFieldManager.getCustomFieldObject("customfield_10150"))
<li class="item item-right">
<div class="wrap">
#if (($prnew.isInScope($issue.getProject(), [$issue.getIssueType().getString("id")])) && ($prnew.getValue($issue)))
<strong class="name">$i18n.getText("$prnew.name"):</strong>
<span id="customfield1-val" class="value $prnew.getValue($issue)" >
#displayConstantIcon($prnew) $textutils.htmlEncode($prnew.getValue($issue))
</span>
#end
</div>
</li>
4.4 Version:
#*
Add Custom Field to the right side of Details panel
*#
#set ($prnew=$customFieldManager.getCustomFieldObject("customfield_10150"))
<li class="item item-right">
<div class="wrap">
#if (($prnew.isInScope($issue.getProject(), [$issue.getIssueType().getString("id")])) && ($prnew.getValue($issue)))
<strong class="name">$i18n.getText("$prnew.name"):</strong>
<span id="customfield1-val" class="value $prnew.getValue($issue).toString()" >
#displayConstantIcon($prnew) $prnew.getValue($issue)
</span>
#end
</div>
</li>
Any idea why this would not work in 5.4.3????
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you for your reply...
it shows something but unfortunately like this:
Spec Freeze: $textutils.htmlEncode($prnew.getValue($issue))
any hints?
thanks,
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
forget about that, your 4.4 version works!
thank you so much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me in 4.3, but in 4.4 the htmlEncode() isnt't working. Add code to the issuesummaryblock.vm file.
#*
Add Custom Field to the right side of Details panel
*#
#set ($prnew=$customFieldManager.getCustomFieldObject("customfield_10155"))
<li class="item item-right">
<div class="wrap">
#if (($prnew.isInScope(null, $issue.getProject(), [$issue.getIssueType().getString("id")]))
&& ($prnew.getValue($issue)))
<strong class="name">$i18n.getText("$prnew.name"):</strong>
<span id="customfield2-val" class="value $prnew.getValue($issue)" >
#displayConstantIcon($prnew)
$textutils.htmlEncode($prnew.getValue($issue))
</span>
#end
</div>
</li>
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.