Other Scriptable Items
Jython Listener
Handles JIRA events with your script.
Listener has two parts:
- Issue events handler
- User events handler
See below for details.
Issue Events
This part handles all issue-related events with the script located at JIRA_HOME/jsspro/jython/listener/workflow_event.py
. Issue events include all system and custom events listed at JIRA Administration → System → Events.
Context
Variable | Description |
---|---|
event | com.atlassian.jira.event.issue.IssueEvent |
log | org.apache.log4j.Logger |
User Events
This part handles all user-related events with the script located at JIRA_HOME/jsspro/jython/listener/user_event.py
. User events are:
- User Signup
- User Created
- User Forgot Password
- User Forgot Username
- User Cannot Change Password
Context
Variable | Description |
---|---|
event | com.atlassian.jira.event.user.UserEvent |
log | org.apache.log4j.Logger |
How to Enable
- Navigate to JIRA Administation → System → Listeners
- Add a listener with any name and classÂ
com.quisapps.jira.jsspro.listener.JythonListener
- Script names could not be changed at the moment.
- Only one Jython listener could exist at the system. You will not be able to add another one.
Jython Service
Runs a specified Jython script by schedule
How to use
Add Jython service:
- Navigate to JIRA Administratuon → System → Services
- Add service with class nameÂ
com.quisapps.jira.jsspro.service.JythonService
 - Click Add Service
- On the next step provide relative or absolute path to Jython script. Relative paths are resoled against
JIRA_HOME/jsspro/jython
folder - Click Update
Jython Runner
Allows to run arbitrary Jython scripts.
How to use
- Navigate to JIRA Administration → Add-ons → Scripting Suite Pro → Jython Runner
- Enter your script into the Source area
- Click Run button
REST Service
Allows to develop your own REST services.