The Adaptavist Group LogoDocumentation

Reading Jira Logs

A Jira log file is a file that records the events that occur when Jira software runs. For more information, read Atlassian's guide to logging. This document will help you to search for ScriptRunner errors in your log files.

You may also want to read the Advanced Logging page for details on using a logger and log levels.

Accessing Jira log files in ScriptRunner

We have developed a built-in script for you to access your log files quickly. Visit our Built-in scripts page to view your server log files. Then, select a log to view, e.g., atlassian-jira.log.

It can be useful to know which log to look for. Check out Atlassian's documentation on Useful log files in Jira.

Searching for ScriptRunner errors in logs

Example of a ScriptRunner error

Here's an example of a ScriptRunner error in the atlassian-jira.log:

Green: Time the log was created

Orange: Logging level – Look for DEBUG, INFO, WARN, ERROR and FATAL

Blue: ScriptRunner class - Look for onresolve or scriptrunner

White: Description of the error

Yellow: The script number and line in which the error occurred. Script 101.groovy is an inline script where we increment the number, for example, Script102, Script103, Script104, etc.

Note: If you have used a file script, it will appear as SomeFile.groovy:26 instead of Script101.groovy:26.

In the example above, we have an ERROR, specifically a NumberFormatException, happening with a ScriptRunner scripted field ( GroovyCustomField) named Ranking on Line 26 of the custom scripted field's code. Everything below the red arrow in the example above is known as the stack trace, and it shows where the error is coming from.

Making logs easier to read

A log file is full of noise and 1,000s of lines long. You can mark logs and replicate an issue to clarify what is happening and when. This makes it easier for you to see what's happened in your logs after you have marked them.

Still not sure what's wrong?

If you're having trouble reading your log files, and are unsure where an error is coming from, contact Adaptavist Support for help.

Search documentation

Start typing to search the docs.