In field configuration, in the description field for Summary I've added the following:
<script type="text/javascript">
if (AJS.$("#summary").val().length <= 0){
AJS.$("#summary").val("Issue Type");
}
</script>
When I go to create an issue that uses this field configuration, the Summary field will momentarily contain "Issue Type" but then it is wiped out and the summary field is empty.
What could be causing this?
All help appreciated.
Karla
I am even facing same issue now. Did you find to resolve the problem?
Your javascript is executing too soon (ie before the page data is actually loaded. I would try either putting this code, so it executes on jquery ready event or time delay the code execution.
If your JIRA version >= 6.2 then you might need to use the announcement banner instead.
https://confluence.atlassian.com/display/JIRA/Fields+Allowing+Custom+HTML+or+JavaScript
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.