How do I create a default entry for the description field specific to a project?

This worked in JIRA 4.1.1, but not after upgrading to JIRA 5.2.10. In 4.1.1, I would go to the field configuration of a specific project. Within it, I would go to the Description field, click on edit, and type my java script. Then, whenever a new issue is created in this specific project, a default text would appear within the description box.

However, this is no longer working in JIRA 5.2.10. Any suggestions? Keep in mind, I want the description field to be populated with default text only for a particular project, not all projects. Thanks.

4 answers

1 accepted

This widget could not be displayed.

He need it in the specific project so it need to be in the field configuration of all the issue type wanted for that project, its easier that way.

yes i know that, we need to add condition, that can be done!!

This widget could not be displayed.

Hello, in your specific field configuration just put this and it will work with jira 5.2

<script type="text/javascript">

AJS.$("#description").val("default value");


Thanks. This works exactly like I need it to.

Hi, this sounds like something I need too.

I have JIRA 6.4.12. 

I don't understand what to do with that piece of code. Can you help me?

This widget could not be displayed.

try with this script by adding it in announcement banner for testing purpose

<script type="text/javascript">
function addDefaultValue() {
//need to add condition here
AJS.$("#description").val("default value"); } (function($) { AJS.toInit(function(){ // init on load addDefaultValue() }); JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) { // init on refresh addDefaultValue() }); })(AJS.$); </script>

i suggest to load it as webresource module in plugin, check this

This widget could not be displayed.

Hi guys,

There is Default Values plugin available for JIRA. It allows to define default value for description and number of other fields (per project and issue type):



Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday 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...

231 views 1 3
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