Get information from the Jira Health Check plugin

This is an example script on how to get information from Jira Health Check plugin.

import com.onresolve.scriptrunner.runner.customisers.WithPlugin
import com.onresolve.scriptrunner.runner.customisers.PluginModule

@WithPlugin("com.atlassian.troubleshooting.plugin-jira")
import com.atlassian.troubleshooting.api.healthcheck.SupportHealthCheckSupplier

@PluginModule
SupportHealthCheckSupplier healthCheckSupplier

healthCheckSupplier.healthChecks*.check().findAll { !it.healthy }*.failureReason()
3 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.