title: Adding configuration options to a basic JIRA gadget
body: <p>This line in the <a href="https://developer.atlassian.com/display/GADGETS/Allowing+Configuration+Options+in+your+Gadget" rel="nofollow">Atlassian documentation</a> leads me to believe that simply including a <code>UserPref</code> element should be sufficient to automatically generate the UI for updating the configuration of a gadget:</p>
  
  <blockquote>
    <p>The container handles generation of the configuration UI, saves the settings and provides an API to access the settings in JavaScript.</p>
  </blockquote>
  
  <p>But it doesn't seem to actually work when I create a test gadget with the following - I don't see any options when I click the "Edit" link on the gadget:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;Module&gt;
    &lt;ModulePrefs
      title="Test"
      author="Test Test"
      author_email="test@example.com"
      directory_title="JIRA Tests"
    &gt;
    &lt;Require feature="setprefs" /&gt;
    &lt;/ModulePrefs&gt;
  
    &lt;UserPref name="show_summ" display_name="Show Summaries?" datatype="bool" default_value="true"/&gt;
  
    &lt;Content type="html"&gt;
      &lt;![CDATA[
          &lt;div id="main"&gt;Test Stuff&lt;/div&gt;
      ]]&gt;
    &lt;/Content&gt;
  &lt;/Module&gt;
  </code></pre>
  
  <p>Is there more to do to make that happen? I've seen a few <a href="https://bitbucket.org/atlassianlabs/jira-issues-gadget/src/922a8ff98577129b8d37e7f6568b017d2eca2109/crucible-blockers-gadget/crucible-blockers.xml?at=master" rel="nofollow">examples that hard-code configuration options</a>, but the above documentation suggest that you don't <em>have</em> to. </p>
  
  <p>Is that something that's only available if you're <a href="https://developer.atlassian.com/display/GADGETS/Packaging+your+Gadget+as+an+Atlassian+Plugin#PackagingyourGadgetasanAtlassianPlugin-StandaloneGadgetorPlugin?" rel="nofollow">packaging it as a plugin</a>, or if you include some other js resource? So far I've been doing a bare plugin so I don't have access to stuff like <a href="https://developer.atlassian.com/display/GADGETS/Using+Web+Resources+in+your+Gadget" rel="nofollow"><code>#requireResource</code></a>, but I'm fine with hard-coding some script elements if that's what's necessary (for now).</p>
  
  <p>Sincerely stumped.</p>