Hi
I am currently trying to configure reports using the better PDF export plugin for Jira.
I am having difficulty understanding what and how I change html code as I am not a coder. Has anyone had experience with this?
Thanks
Hi @jinali-p
If I'm correct, you are trying to set up the Gantt Chart PDF report in Better PDF Exporter, right?
For a basic use case, you don't have to modify anything on the template or in any HTML. The Gantt chart report works from the Start Date and End Date values of Jira issues. If you have those configured for every issue you are exporting, the chart comes alive!
So make sure you have Start and End dates configured, and if you still have difficulties, get in touch with our friendly support people by opening a ticket, so they can give you a hand.
Thank you for the response. What i just wanted to check is which field's are these in Jira as i have some custom fields that i have created including Start Date, Actual Completion and we use the Due date OOB. So is the end date the due date field? OR is it picking up the done status in the kanban board board?
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In this case, you can (and should) explicitly specify the custom field ID that represents the start and end date values for you in the template. (Here are all the parameters you can specify for your Gantt Chart PDF report)
If you open up your gantt.chart-fo.vm template that comes with the app, it's right at the top of the document:
#set($startDateCustomFieldId = YOUR_CF_ID) ## should be a Date Picker type custom field
#set($endDateCustomFieldId = YOUR_CF_ID) ## should be a Date Picker type custom field
Replace YOUR_CF_ID with the right custom field IDs, save the template, and you are good to go.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Levente Szabo _Midori_ thank you so much will have a try. Also if I want to amend the view eg monthly view which code do I change here ? Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Levente Szabo _Midori_also the progress is showing 100% not sure where that is pulling from and do not have a custom field for it. How is this calculated? I tried to set it to 0 or -1 but things are still appearing as 100%, maybe i am reading this wrong. Thanks again :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No worries!
Have you visited the documentation section I linked earlier?
Here are all the parameters you can specify for your Gantt Chart PDF report.
Among the parameters, you can set what time period you want to use (days, weeks, etc) and also how to calculate the percentage (either use a specific custom field value for it or leave it to the template to calculate from the start and end dates)
If you tried that and still not getting the desired results, please open a support ticket and we will look into it for you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Levente Szabo _Midori_ apologies just bit of a novice when it comes to configuring html :(. Yes indeed I have been looking the guidelines since yday just every time i change something it throws an error.
def startDateCustomFieldFullId=10032
def endDateCustomFieldFullId=10037
def progressPercentageCustomFieldFullId
The progress percentage i want to remove completely from the gantt report is this possible?
As for setting the calendar views. Is it here? If so which do i configure:
def dates = new ArrayList()
def earliestDate = null
def latestDate = null
def earliestDateDayOfWeek = -1
def currentDateIndex = -1
long millisPerUnitPeriod
def actualViewPeriod
def hasSubTasks
def subTasksByParentId = ArrayListMultimap.create()
static final calendar = Calendar.instance
static final monthOnlyDateFormat = new SimpleDateFormat("MMM")
static final dayOnlyDateFormat = new SimpleDateFormat("d")
static final VIEW_PERIOD_DAY = "day"
static final VIEW_PERIOD_WEEK = "week"
static final VIEW_PERIOD_AUTO = "auto"
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you are trying to modify the gantt-chart.groovy file instead of the gantt-chart-fo.vm template that I mentioned.
No worries, as I suggested, please open a support ticket here so we can address all of your requirements properly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.