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

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

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

27,404 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you