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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,965 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot