Hi everyone,
I need to hide the Summary field... and I finally did it by taking it out from the specific Screens.
Unfortunately, system still asks me for a value in this field.
I have tried to set the following javascript code in Summary description (Field configuration):
<script type="text/javascript">
if (document.getElementById("summary").value == "") {
document.getElementById("summary").value = "Some Information:\n";
}
</script>
I have even reindexed and restarted Jira in order to this modifications to be taken into account, with no effects.
Can anyone help me with this issue?
Thank you.
Javier.
Notes:
a) I am using Jira 4.4
b) I cannot access the local system, so I cannot change any JIRA file from my location.
c) I am used to managing Jira from a functional view, but I am a newbie in programming Jira. I can only set javascript and so on.
:)
Community moderators have prevented the ability to post new answers.
If you added the script in the description of summary field and summary is not on screens, the Javascript will not be invoked. Try adding the Javascript under the description of a field that is on the screen.
Hi Jobin,
I will make this field visible again and put a dummy content as "You can also write here.", and I will tell you the results.
Thank you for your quick answer.
Javier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use a plugin instead of the script. Workflow Essentials for JIRA allows you to define default system field values including the summary field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just like to thank Jörg for the tip, even then its 2019, i was stuck on this problem and Workflow Essentials for JIRA helped me out a lot. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello! Found answer for jira 5.2: <script type="text/javascript"> if (document.getElementById("summary").value == "") { document.getElementById("summary").value = "Value"; } </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this only work for the second click in my environment. how can I enable the first click?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jobin's comment has been a very important key to find the solution.
His comment opened my mind and I realized that I had several Field Configurations, Screens and Screen Schemes and I have had set the javascript code in the default field configuration!!!!
I set to visible the Summary fields in all the configurations and set the javascript code in every clone of summary field description (one clone per field configuration).
To ensure the lack of visibility of Summary, I placed it in different tabs.
... AND ALL STARTED WORKING AS REQUIRED.
Thank you Jobin, your help has been the key.
Javier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
np, glad it helped :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I've tried the same, but does nt work for me :-(
I may have missed something ??
I'm with jira 5.2, should it work also for this ?
Thanks in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone,
I met a problem and hope you could help me out. I'm using JIRA 6.4.3.
I have set the following script
<script type="text/javascript"> if (document.getElementById("summary").value =="")
{ document.getElementById("summary").value = "default"; } </script>
in one of my field configuration. And in testing it was good.
But now it turned out that, the default value wouldn't come out for the first time you click Create after you log on. The system would give error message and you have to quit. Then you click Create again, there are the default value.
Why? And how can I fix this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.