I like to put defaults text in the description field:
for example:
******************
Steps to reproduce:
Expected results:
Actual results:
*****************
Is there a way to do that?
Thanks
Go to the particular Field Configuration and find the Description field. Click "Edit" and in the description for this field add text similar to the following:
<script type="text/javascript"> if (document.getElementById("description").value == "") { document.getElementById("description").value = "*Steps to Reproduce* \n\n\n\n*Expected Results* \n\n\n\n*Actual Results* \n"; } </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This fixed my problem. THanks to everyone who suggested. I decided to stay away from editing the vm file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sean,
I tried the same as you suggested, but unable to view default text in the description field.
Is there any requirement of add-on? Please let me know how to add those text?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
write this in body of .vm file.
#set($description="yourcontent")
or if u want new line charactersand all,
use this
AJS.toInit(function () {
AJS.$("#description").text(" steps to produce \r \r expedted results \r \r")});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in which case, perhaps edit the .vm file associated with a particular field type?
the edit-xxxxx .vm files are found here on my computer: C:\Program Files\Atlassian\JIRA 4.3.4\atlassian-jira\WEB-INF\classes\templates\plugins\fields\edit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this for a custom field you are creating? What is the context? You can edit this sort of thing in the .vm file. I have just created a custom field and have specified name, default values etc so I would assume you could do the same for the description field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just want to add the stuff I mentioned previously.
I want the description field to show this text in it.
Steps to reproduce:
Expected results:
Actual results:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You cannot give default text without populating it using Javascript or something. Using Javascript maybe an idea though!.
Another option is to use a description (by editing the description field in the field configuration) that asks the user to enter ther description in the said format.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.