Hi ,
We have a plugin called "Jira Charting Plugin" , which gives the some custom field types such as ,
1.Date of first Response
2.time in each Status
3.Closing Status
4.Days since last comment
We want to filter out the above fields in the issue pdf(We are extracting each issue in the PDF format) .
So when iterating the custom fields based on the custom field's id in the .vm file, we are thrown an error like the following
Also I searched for similar issues and found this :
When I searched for the similar problems , found this below link
https://jira.atlassian.com/browse/JRA-11514
The solution suggested is to
Fixed the excel all fields view to exclude custom field columns that have no view/column-view defined as they cause velocity reference exceptions.
Any idea how to fix this issue?
Thanks
Srividhya
If you all want to do is filtering out (not showing) those fields in the PDF (generated by the JIRA PDF View Plugin), then what you should do is a simple check like this:
#if($customField.idAsLong != 10010 && $customField.idAsLong != 10011)
## here comes the export code
#end
This sample snippet assumes that the fields not to export has ID = 10010 and 10011.
This way you code will skip them and avoid the ReferenceException.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.