I would like to create a new issue whenever a new Version is added to a project.
I'd like to:
- Listen for VersionCreated event on any project within a specified project Category
- Category would be specified within the script/listener
- On VersionCreated - Create a new issue of specified type (within the same project), containing static values for system and custom fields
- (Issuetype and fields would be specified within the script)
- (Version and Project Key would be populated based on values from the "VersionCreated" event)
- Newly created issue should be automatically linked to the version that was just created
Any thoughts on the best approach for this?
I was thinking Scripted Listener (conditional for project category) on VersionCreated event, that fires issue.create function (with Project Key and Version passed in from the VersionCreated event data.