Hello, is there any request for an rest endpoint that would provide full details similar to the "System info" admin section of JIRA ( (/rest/api/2/serverInfo provides very limited information)? Or a different way how to retrieve the log files paths?
I'd like to do my own plugin logs "online" viewer kind of thing. I know there are some free apps you can find on Marketplace or there is even some built-in script in ScriptRunner for Jira but I'd like to make one for my concrete type of scenario.
I thought it could work in the very simplicity - open the log file, read few lines of it and show that in some dialog.
Hi Martim.
I can confirm that ScriptRunner for Jira Server/ Data Center provides the built in script named View Server Log Files which is documented here and when you run this script then you can specify a log file as well as how many lines you want to view from this and this will be displayed online inside of Jira.
I hope this helps.
Regards,
Kristian
Nope, the API endpoints would be listed here: https://developer.atlassian.com/server/jira/platform/rest-apis/
For anything more "custom" you would have to improvise a little bit with HTTP requests and perhaps filtering the content out from either html or json.
If you would be building a plugin you can however use Java API which definitely will allow you to get that data, including the file system path to the log files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Anyway if you want to view logs "online" you don't need a plugin per se, you can just configure the web server to serve static content (e.g. like for Apache here: https://access.redhat.com/solutions/67298). May want to be very sure that the folder won't be accessible to unwanted parties though since static content will follow web server configuration, and will be "outside" of Jira application entirely.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your response. Even tough it's an interesting solution I'd like to have the viewer within the plugin itself as a part of the plugin functionality. Probably will go with the Java API recomendation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.