How to remove "Name" and "Email" from the Issue Collector
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Based on this improvement request, users may want to remove the fields "Name" and "Email" from the Issue Collector.
Cause
Currently, there isn't a possibility to modify these fields in the Issue collector and there isn't a web interface solution to remove these.
Workaround
To do this you will have to edit the contactform.vm template. To do this, just follow the steps below:
Prior JIRA 6.3
Browse through <<JIRA_INSTALL>>/atlassian-jira/WEB-INF/classes.
Extract the atlassian-bundled-plugins.zip file.
Rename the jira-issue-collector-plugin-1.2.9.jar to jira-issue-collector-plugin-1.2.9.zip and extract the content of it to a folder.
In this folder, browse through templates/collector and open the contactform.vm file.
Remove the following lines from this file:
<div id="name-group" class="contact-form-fields field-group #if(!$showContactForm)hidden#end">
<label for="fullname">$i18n.getText('common.words.name')</label>
<input type="text" name="fullname" class="text" id="fullname">
</div>
<div id="email-group" class="contact-form-fields field-group #if(!$showContactForm)hidden#end">
<label for="email">$i18n.getText('common.words.email')</label>
<input type="text" name="email" class="text" id="email">
</div>
Recompress the content of jira-issue-collector-plugin-1.2.9 folder (not the folder) and set the file type to .jar again.
Upload this .jar file in JIRA's plugin page or recompress the atlassian-bundled-plugins folder to atlassian-bundled-plugins.zip (if you choose this option you will have to restart JIRA and reindex it after the startup);
JIRA 6.3+
Browse through <<JIRA_INSTALL>>/atlassian-jira/WEB-INF/atlassian-bundled-plugins.
Rename the jira-issue-collector-plugin-x.x.x.jar to jira-issue-collector-plugin-x.x.x.zip and extract the content of it to a folder.
In this folder, browse through templates/collector and open the contactform.vm file.
Remove the following lines from this file:
<div id="name-group" class="contact-form-fields field-group #if(!$showContactForm)hidden#end">
<label for="fullname">$i18n.getText('common.words.name')</label>
<input type="text" name="fullname" class="text" id="fullname">
</div>
<div id="email-group" class="contact-form-fields field-group #if(!$showContactForm)hidden#end">
<label for="email">$i18n.getText('common.words.email')</label>
<input type="text" name="email" class="text" id="email">
</div>
Recompress the content of jira-issue-collector-plugin-x.x.x folder (not the folder) and set the file type to .jar again.
Upload this .jar file in JIRA's plugin page or place it in the <<JIRA_INSTALL>>/atlassian-jira/WEB-INF/atlassian-bundled-plugins folder (if you choose this option you will have to restart JIRA and reindex it after the startup).
OBSERVATION: These fields will not disappear from the issue collector preview page, only from the issue collector itself!
Related Content
You may also want to check this:
How to set "Name" and "Email" as required fields in the Issue Collector
Was this helpful?