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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

727 views 6 13
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