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.

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 Jun 4, 2019

Was this helpful?

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