Issue Collector: Can 'Name' and 'Email' be made required fields?

Brian Batts October 9, 2012

Hi all,

We use JIRA's Issue Collector as a support tool, where all of our customers can create/raise issues and/or feedback. We are using a single user license, which all customers go through via our single Issue Collector. We have found that some end-users are submitting issues without entering their name or email address, so we don't know which of our customers it came from. This is a problem, as it is embarrassing to call each customer, until you find the right one. :) Is it possible to make the 'Name' and 'Email' fields a requirement?...like the 'Summary' field.

Thank you.

4 answers

1 accepted

1 vote
Answer accepted
AddteqS October 18, 2012

This solution is not tested for JIRA On Demand. However, we successfully implemented this for JIRA Download.

We faced a similar situation where we wanted to make the Name and Email field mandatory. Our work around was to add custom fields for Name and Email and make those mandatory in Issue Collector.

Issue collector does not seem to let you remove the default Name and Email fields. We got around that by hacking the issue collector plugin jar to modify the velocity template lines that display those fields.

The highlighted lines we removed from the velocity template in templates/collector/contactform.vm to get rid of the default Name and Email fields:

After modifying the issue collector jar we reuploaded it from the install new plugin page in JIRA administration.

motherg January 30, 2013

Hi,

Based on this information we have attempted to do the same thing but the Name and Email fields are still displayed (when previewed in the Issue Collector admin). Would you expect them to disappear from here too?

0 votes
Arleena Faith September 17, 2015

1)-There is no need to remove the default email and name fields which have useful functionality attached to them within the system. Instead, hack the collector by simply adding the HTML required attribute to both tags. It's the simplest solution.

2)-To unpack and repack jars you need to install the jar utility.

jar -xvf file.jar

jar -cfv newjarfilename.jar <directory, path or file(s) to repack>

See the full answer here:

https://confluence.atlassian.com/pages/viewpage.action?pageId=343834804

 

0 votes
Heath March 10, 2014

I have JIRA On Demand, we really need to be able to make these fields required. I tried a custom field but with On Demand we have no access to the code and thus can not do the solution above. Is there an alternative?

0 votes
MAE O&M May 12, 2013

Hello,

I too have attempted to use this workaround and have the same experience as mother-goose in that the fields are still displaying in the issue collector forms. How are you repackaging the jar file after editing the contact form?

Suggest an answer

Log in or Sign up to answer