Forums

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

How to see logs for Jira add-ons?

Prabhu Prabhakar
Contributor
May 27, 2021

Hi All,

How to check the logs for Jira add-ons? 

Example: I'm using JSU plug-in, I'd like to see where and all I used it.

 

2 answers

2 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 27, 2021

The default is to drop logging data into the application log, but that can be changed if you're willing to mess with log4j settings, or a particular app supports separate logging.

Also, you may find that an app only logs errors.  From memory, JSU logs global config change and errors, but not actions that are part of something and don't fail - so if you use a JSU post-function in a workflow, you won't see it log anything unless it fails.  The logs won't help you find out where you have configured most apps.

There are a few apps out there that can analyse some of your app usage and report back on where they're used, and some apps are good and actively tell you where you've configured them, so it's easy to get a list.

Prabhu Prabhakar
Contributor
May 28, 2021

Hi @Nic Brough -Adaptavist- 

Thanks for your kind information! 

Could you please suggest some app?

Thanks again.

0 votes
Answer accepted
Suprija Sirikonda _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 27, 2021

Hi @Prabhu Prabhakar ,

To get the JSU usage statistics on your instance i.e., the list of workflows(including Inactive workflows) where JSU conditions, validators & post-functions are added, please run the below SQL query in your database :

select * from jiraworkflows where descriptor like '%com.googlecode.jsu%' or descriptor like '%ch.beecom.jira.jsu%';

Follow below steps to retrieve debug logs of JSU in Jira : 

  • Go to Administration -> Logging and Profiling.
  • Look for the link “Configure logging level for another package” and click on it
  • Add following entry for the Class/Package Names:
    com.googlecode.jsu
  • Select DEBUG for the New Level value and click Add entry.
  • Add the following entry for the Class/Package Names:
    ch.beecom.jira.jsu
  • Select DEBUG for the New Level value and click Add entry.
  • Perform any action.
  • Log statements are displayed in the standard Jira log file(atlassian-jira.log file).

When Jira is restarted, these packages will be removed from the logging level list and will have to be added again to get the debug information related to JSU configuration.

We have opened a support ticket in our JSU support portal to better track your request. However, we couldn't add you as the reporter. Please sign up using this link and share the username/id. We'll then add you as the reporter and confirm.

Thanks,

Suprija 

Prabhu Prabhakar
Contributor
May 28, 2021

Suggest an answer

Log in or Sign up to answer