How to remove "Name" and "Email" from the Issue Collector

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Based on this improvement request, users may want to remove the fields "Name" and "Email" from the Issue Collector.

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

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

  1. Browse through <<JIRA_INSTALL>>/atlassian-jira/WEB-INF/classes.
  2. Extract the atlassian-bundled-plugins.zip file.
  3. 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.
  4. In this folder, browse through templates/collector and open the contactform.vm file.
  5. 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>

  6. Recompress the content of jira-issue-collector-plugin-1.2.9 folder (not the folder) and set the file type to .jar again.
  7. 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+

  1. Browse through <<JIRA_INSTALL>>/atlassian-jira/WEB-INF/atlassian-bundled-plugins.
  2. 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.
  3. In this folder, browse through templates/collector and open the contactform.vm file.
  4. 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>

  5. Recompress the content of jira-issue-collector-plugin-x.x.x folder (not the folder) and set the file type to .jar again.
  6. 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


Last modified on Dec 19, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.