I would like to set a default SUMMARY value for certain request types.
I found info here, stating to insert this javascript into the field. The instructions are:
Go to the respective Field Configuration of the project.
Find for the Summary field.
Click on Edit.
Input the following JavaScript at the Description of the field:
<span><</span>script type<span>=</span><span>"text/javascript"</span><span>></span>
<span>if</span> <span>(</span>document<span>.</span><span>getElementById</span><span>(</span><span>"summary"</span><span>)</span><span>.</span>value <span>==</span> <span>""</span><span>)</span> <span>{</span>
document<span>.</span><span>getElementById</span><span>(</span><span>"summary"</span><span>)</span><span>.</span>value <span>=</span> <span>"<Default Value for Summary>\n"</span><span>;</span><span>}</span>
<span><</span><span>/</span>script<span>></span>But I gather this will affect this field in all forms, etc. Is that correct?
I read elsewhere that I could add,
if (issue.get("issuetype").name == "Issue Type" {But actually even without this additional code, the above JS doesn't have any affect on the new issue form (on the user portal). And on the Agent site of things, I shows the JS under the field, as its description.
Is there any way (without using paid plugins/add-ons to achieve this?