<atlassian-plugin key="org.moodle.plugin.customfields.MoodleBranchesCustomFields" name="Moodle Branches Custom Fields" plugins-version="2">
  <plugin-info>
    <description>Plugin to show/search by affected/fixfor Moodle CVS branches for JIRA.</description>
    <version>4.0.0</version>
    <application-version min="4.0" max="4.0"/>
    <vendor name="Eloy Lafuente (stronk7)" url="http://stronk7.com" />
  </plugin-info>

  <customfield-type key="moodleaffectedbranches"
                   name="Moodle Affected Branches"
                  class="org.moodle.plugin.customfields.AffectedBranches">
    <description>This field will show the branches affected by one issue, given their affected versions</description>
    <resource type="velocity" name="view" location="templates/plugins/fields/view/view-basictext.vm"/>
    <resource type="velocity" name="xml" location="templates/plugins/fields/xml/xml-basictext.vm"/>
  </customfield-type>
  <customfield-searcher key="moodleaffectedbranchessearcher"
                       name="Affected Branches Searcher"
                      class="org.moodle.plugin.customfields.searchers.MyTextSearcher">
    <description>Search for affected branches</description>
    <resource type="velocity" name="search" location="templates/plugins/fields/edit-searcher/search-basictext.vm"/>
    <resource type="velocity" name="view" location="templates/plugins/fields/view-searcher/view-searcher-basictext.vm"/>
    <resource type="velocity" name="label" location="templates/plugins/fields/view-searcher/label-searcher-basictext.vm"/>
    <valid-customfield-type package="org.moodle.plugin.customfields.MoodleBranchesCustomFields" key="moodleaffectedbranches"/>
  </customfield-searcher>

  <customfield-type key="moodlefixedbranches"
                   name="Moodle Fixed Branches"
                  class="org.moodle.plugin.customfields.FixedBranches">
    <description>This field will show the branches fixed for one issue, given their fixfor versions</description>
    <resource type="velocity" name="view" location="templates/plugins/fields/view/view-basictext.vm"/>
    <resource type="velocity" name="xml" location="templates/plugins/fields/xml/xml-basictext.vm"/>
  </customfield-type>
  <customfield-searcher key="moodlefixedbranchessearcher"
                       name="Fixed Branches Searcher"
                      class="org.moodle.plugin.customfields.searchers.MyTextSearcher">
    <description>Search for fixed branches</description>
    <resource type="velocity" name="search" location="templates/plugins/fields/edit-searcher/search-basictext.vm"/>
    <resource type="velocity" name="view" location="templates/plugins/fields/view-searcher/view-searcher-basictext.vm"/>
    <resource type="velocity" name="label" location="templates/plugins/fields/view-searcher/label-searcher-basictext.vm"/>
    <valid-customfield-type package="org.moodle.plugin.customfields.MoodleBranchesCustomFields" key="moodlefixedbranches"/>
  </customfield-searcher>
</atlassian-plugin>
