Jira Charting Plugin headless java mode

The directions say to add  -Djava.awt.headless=true.  where is this added in the JIRA folders for the charting plugin.  This is for Time in Status and Response. JIRA  and charting plugin 1.1o

1 answer

0 votes

It's for the command line parameters when starting JIRA - check the setenv.sh/bat file in the bin directory of the installation.

We found it after googling. The fields for charting are not working after we verified these parms "%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.awt.headless=true -Datlassian.standalone=JIRA -Dmail.mime.decodeparameters=true;-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true;-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties" --JvmMs 256 --JvmMx 768 --Startup auto call "%BIN_DIR%\permgenservice.bat"

set JVM_REQUIRED_ARGS=-Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true

What populates the Time in Status field? Since the document says do not add to screens.

Code in the addon populates the field with some data that is not formatted for humans when you index the issues (after adding the fields) Have you restarted the system after adding the parameter? And then added the field?

I added the fields and indexed then restarted. Not showing any data in the charts

Hmm. Could you quickly check that admin -> System information is showing the "-Djava.awt.headless=true" in the environment field? It's worth checking because some setups don't set it correctly (I usually manage to edit the wrong file) What does the log say when you try to render one of the charts on the dashboard? And are you 100% sure it should have data in it?

System Info: JVM Input Arguments -Dcatalina.base=D:\jira- -Dcatalina.home=D:\jira- -Djava.endorsed.dirs=D:\jira-\endorsed -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dmail.mime.decodeparameters=true -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Djava.io.tmpdir=D:\jira-\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=D:\jira-\conf\logging.properties -XX:MaxPermSize=256m -XX:MaxPermSize=512M -Dmail.mime.decodeparameters=true exit -Xms512m -Xmx1024m

Yes we are sure it should have data since we tested status & response time in an issue after restart. The logs do not show any error Time To First Response: Foundation Average Time in Status: FND Bugs Targeted JS move Maximize Gadget menu

The plugin doc shows the time in response fields are editable in the screen shots. The fields were not added to any screens and are not visible on any issue. Is that correct?

See 3 screen shots under manage plugin. When i tried to attach image. i get this error Your post was rejected because it contains blacklisted words. Please contact the admin for more information. SaveCancel

No screenshots, sorry. The docs explicitly say "do not add these fields to screens" though, so you have that right. I'm a bit stuck now, I don't know what might be wrong with them. I've used this addon a lot in the past and adding the field and re-indexing has always made the gadgets work (or throw errors into the logs that tell me what I've messed up)

One question we had on the Time of First Response field is actually Date of First Response in the Add custom field selection. Does the name matter or is just the TYPE of field selected

I can't remember. The type is absolutely critical, definitely, but the name, I don't know. You could try renaming the field (you won't need to reindex to test it, or if you change it back)

I changed the name(no results) and changed it back. When we changed the projects it started working on the gadget side. Looks like some projects just do not have the data which is odd

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,476 views 15 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you