Auto-Create new issue when New Version added to project.

Chuck Vanderwist
Contributor
February 21, 2018

I would like to create a new issue whenever a new Version is added to a project.

I'd like to:

  1. Listen for VersionCreated event on any project within a specified project Category
    1. Category would be specified within the script/listener
  2. On VersionCreated - Create a new issue of specified type (within the same project), containing static values for system and custom fields
    1. (Issuetype and fields would be specified within the script)
    2. (Version and Project Key would be populated based on values from the "VersionCreated" event)
  3. 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.

1 answer

0 votes
Laurens Coppens
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 22, 2018

you can do this with the automation plugin: https://marketplace.atlassian.com/plugins/com.codebarrel.addons.automation/cloud/overview

There you can map an action to the creation of a new version

Chuck Vanderwist
Contributor
February 27, 2018

Which trigger would I use to detect a new version being created in the project? I don't see anything that would do this...

Laurens Coppens
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 27, 2018

You have a "Version Created" trigger in the automation plugin, its on the creation of a new rule bottom right.

Chuck Vanderwist
Contributor
February 28, 2018

I've been blind before... and maybe I'm not using the right add-on version... but I do not have this option for triggers when creating a new rule.

Selection_726.png

Laurens Coppens
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 1, 2018

hmm, weird, i use the paid version on server, what version are you using?

Chuck Vanderwist
Contributor
July 9, 2018

This option showed up after we upgraded - we are running Automation for JIRA server (paid) v3.13.0

Suggest an answer

Log in or Sign up to answer