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:
<span id="customfield1-val" class="value $prnew.getValue($issue).toString()" >
#displayConstantIcon($prnew) $prnew.getValue($issue)
This worked for me in 4.3, but in 4.4 the htmlEncode() isnt't working. Add code to the issuesummaryblock.vm file.
#set ($prnew=$customFieldManager.getCustomFieldObject("customfield_10155"))
#if (($prnew.isInScope(null, $issue.getProject(), [$issue.getIssueType().getString("id")]))
&& ($prnew.getValue($issue)))
<span id="customfield2-val" class="value $prnew.getValue($issue)" >
#displayConstantIcon($prnew)
$textutils.htmlEncode($prnew.getValue($issue))
Here is the needed 4.4 change:
thank you for your reply...
it shows something but unfortunately like this:
Spec Freeze: $textutils.htmlEncode($prnew.getValue($issue))
any hints?
thanks,
forget about that, your 4.4 version works!
thank you so much!
Any idea why this would not work in 5.4.3????
It looks like you're new here. Sign in or register to get started.