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


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.


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
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,125 views 4 9
Read article

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