Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Template doesn't work after upgrading to 5.0

A February 23, 2012

Hi,

I've just upgraded my Jira (for personal use) to 5.0 along with the supported version of "PDF Viewer" (1.6.0). And now I can't get the included (but optional) dispatch template to work.

I have two different project and I want to use different templates for each of them. The included template is like this:

<?xml version="1.0" encoding="ISO-8859-1"?>

## JIRA PDF View Plugin
## Sample template that dispatches to multiple concrete templates, based on a condition.

## IMPORTANT: when you use this template, please remove the first line "<?xml version="1.0" encoding="ISO-8859-1"?>" from each of the included templates. 
## For example, both from "issue-navigator-fo.vm" and "issue-fo.vm" in this sample case.

## dispatch to a template based on the project key


#set($projectKey = $issues.get(0).project.key)

#if($projectKey == 'IDE')

	#parse("/templates/plugins/pdfview/issue-fo-IDE.vm")

#else

	#parse("/templates/plugins/pdfview/issue-fo-standard.vm")

#end

Does anyone have a clue about what's wrong??

3 answers

1 accepted

0 votes
Answer accepted
A February 23, 2012

Shoot, I thought I had commented out "<?xml version="1.0" encoding="ISO-8859-1"?>" in the other templates, but I hadn't of course... :-p

It's working like a charm now!

0 votes
Midori
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 10, 2012

Yes, that was the problem. (Your XML was not well formatted.)

If you have a commercially supported license with the plugin, then please post your questions and problems to Midori's support tracker at https://midori.zendesk.com/

You can expect immediate help there, we are not visiting Atlassian Answers every day.

0 votes
A February 23, 2012

I've found a couple of differences in some of the other templates.
I think

$issues.get(0).project.key

could be the cause of the error - anye ideas? If anyone have a different method, that will of course do... :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events