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.
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.
At the American Academy of Family Physicians, siloed marketing teams faced delays and duplicate work. Kerrie Gottschalk shook things up by moving the department to Jira, streamlining processes, boosting visibility, and sparking stronger collaboration.
Read the story
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.