Forums

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

PDF Export build plugin

jinali-p June 3, 2020

Hi

 

I am currently trying to configure reports using the better PDF export plugin for Jira.

https://www.midori-global.com/products/better-pdf-exporter-for-jira/cloud/documentation/template-configuration?utm_source=jpdfc&utm_medium=template&utm_campaign=gh&utm_content=gantt-chart-fo

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

1 answer

0 votes
Levente Szabo _Midori_
Atlassian Partner
June 4, 2020

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.

jinali-p June 4, 2020

Hi @Levente Szabo _Midori_ 

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

Levente Szabo _Midori_
Atlassian Partner
June 4, 2020

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.

jinali-p June 4, 2020

@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

jinali-p June 4, 2020

@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 :)

Levente Szabo _Midori_
Atlassian Partner
June 4, 2020

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!

jinali-p June 4, 2020

@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

Levente Szabo _Midori_
Atlassian Partner
June 4, 2020

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events