Scripts in field configurations do not work after "Default Values for Create Issue" plugin installation

Gilles Boyer March 22, 2014

Hi,

When an issue of a specific issue type is created, we want some fields to be prepopulated with standard text or values, whatever the project, so as to make issue creation easier for the user and more consistent across users and projects.

So , this is what we did : we created a field configuration for that issue type. We wrote java scripts in field configurations. The scripts did generate the default values when the issue was created and the specific issue type selected. This was ok.

Then we installed the "Default Values for Create Issue" plugin, which seemed to do just what we wanted, with the additional benefit of avoiding us to write scripts by ourselves.

First we realize that the plugin could generate default values for a given issue type and a given project, but not for all projects. We understand that this feature will be available soon.

Second and more worrying, the above mentionned scripts do not work any longer. It looks like the plugin has desactivated the scripts, which are however still visible in field configurations.

Please let us know how we can get our scripts back to work, while waiting for the "per issue type and all projects" feature.

Gilles

1 answer

0 votes
Nic Brough -Adaptavist-
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 22, 2014

The plugin works by hijacking the javascript on the fields. So you can either use this plugin, or your own javascript. Not both. You either need to abandon your scripts or uninstall the plugin

(This is a reason I stay well away from javascript trickery in Atlassian products - as soon as you try to do anything clever, you're into clashing scripts, unexpected behaviour and unanticipated breask all over the place)

Suggest an answer

Log in or Sign up to answer