Hello World Script

This script is applicable to any ComponentEvent. It just logs associated component to atlassian-jira.log file if logging is enabled for “com.deniz.jira.versioning.scripting”. To enable logging for the package you can navigate to http://JIRA_BASE_URL/secure/admin/ViewLogging.jspa and click on “Configure logging level for another package” link.

import com.atlassian.jira.event.bc.project.component.*; def AbstractProjectComponentEvent event = (AbstractProjectComponentEvent) parameters.event; //Enable logging for package com.deniz.jira.versioning.scripting log.debug("==>" + event.projectComponent.toString());