osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: How to display issue type name and priority
value? - msg#00469

List: java-jira-devel

java-jira-devel Navigation:
Date: Prev Next Date Index Thread: Prev Next Thread Index

Website Performance Monitoring

If you want to change the icon to text in that specific view, you'd need to
change the VM file (probably VM, but could be JSP file).

You'll probably find a line like this to display the icon:
{code}
<td width="5%">#displayType($singleissue)</td>
{code}

which calls the macro displayType, in macros.vm, which has this statement:
{code}
#displayConstantIcon($issue.getIssueTypeObject())
{code}

In the VM file that calls #displayType, I'd just replace the statement with
something like $singleissue.getIssueTypeObject().getNameTranslation().

-Cory
--
Post by csytsma - online at:
http://forums.atlassian.com/thread.jspa?forumID=100&threadID=54130


Thread at a glance:

Previous Message by Date:

Hyphen causing error in Velocity template

I have a Velocity template that is copied from the Comment section from an Issue. I want to put an internal page link, down to a specific Comment ID. However, when I attempt to put a variable ($commentId) in the href link, I keep getting a Velocity error, complaining about the hyphen. I've tried using character codes for the hyphen, that didn't work either. I'm stuck with the hyphen, because that's how Atlassian has decided to name the id's for the Comments section. I've tried searching on using a hyphen in Velocity scripts, and found some reference that it needs to be handled differently, but can't find the answer. If I don't put a velocity $variable in the href statement, it works just fine. I think the hash (#) in front of comment is what's setting the whole thing off. if I remove the #, it also works ok, with the variable. Here's the line from my Velocity script: {code} <a href="${urlPrefix}#comment-$commentId-open"><font size="1" color="grey">...(truncated)</font></a> {code} Here's the error I get: {code} org.apache.velocity.exception.ParseErrorException: Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 18, column 47. Encountered: "-" (45) {code} Thanks for any help. -Cory -- Post by csytsma - online at: http://forums.atlassian.com/thread.jspa?forumID=100&threadID=54146

Next Message by Date:

Re: [Script Runner] How to check a custom field value in a workflow validator?

Alternatively: cfValues['Multi Checkboxes'][0] == 'Yes' cheers, jamie -- Post by JamieEchlin - online at: http://forums.atlassian.com/thread.jspa?forumID=100&threadID=54137

Previous Message by Thread:

How to display issue type name and priority value?

Hi, In JIRA 4.2.1 Issue navigator screen, for issue type and priority column, its displaying the image. But our client wants to display the text instead of image. For eg, IssTyp1,IssTyp2, P1, P2 etc. How to change this? Please suggest. Thanks -- Post by mksaran10 - online at: http://forums.atlassian.com/thread.jspa?forumID=100&threadID=54130

Next Message by Thread:

Re: jira-users group problem in JIRA 4.3.1

It was something wrong in my test environment now it works. -- Post by annicka - online at: http://forums.atlassian.com/thread.jspa?forumID=100&threadID=53310
Source may include planetjava

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too! | Source may include bb10