summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-02-04 17:01:01 +0100
committerDavid Lawrence <dkl@mozilla.com>2015-02-04 17:01:01 +0100
commitfe77847fd79f1e2c33754e0960138ca5cba1ca51 (patch)
tree1b3e3b7e7cd9c99cfcdac7bdc3720a9c883315ff /extensions
parent06242167fc94c0b43ba497510d46477339b91267 (diff)
downloadbugzilla-fe77847fd79f1e2c33754e0960138ca5cba1ca51.tar.gz
bugzilla-fe77847fd79f1e2c33754e0960138ca5cba1ca51.tar.xz
Bug 1124255: Need a way to find only active versions and target milestones using the API
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BzAPI/template/en/default/config.json.tmpl22
1 files changed, 21 insertions, 1 deletions
diff --git a/extensions/BzAPI/template/en/default/config.json.tmpl b/extensions/BzAPI/template/en/default/config.json.tmpl
index 340a8e650..a00245ddf 100644
--- a/extensions/BzAPI/template/en/default/config.json.tmpl
+++ b/extensions/BzAPI/template/en/default/config.json.tmpl
@@ -148,7 +148,8 @@ OLDATTACH2NEW = {
[%- ',' UNLESS loop.first %][% flag_type.id FILTER json %]
[% END %]],
[% END %]
- "description": "[% component.description FILTER json %]"
+ "description": "[% component.description FILTER json %]",
+ "is_active": [% component.is_active ? "true" : "false" %]
} [% ',' UNLESS loop.last() %]
[% END %]
},
@@ -157,6 +158,15 @@ OLDATTACH2NEW = {
"[% version.name FILTER json %]"[% ',' UNLESS loop.last() %]
[% END %]
],
+ "version_detail": [
+ [% FOREACH version = product.versions %]
+ {
+ "id": [% version.id FILTER json %],
+ "name": "[% version.name FILTER json %]",
+ "is_active": [% version.is_active ? "true" : "false" %]
+ }[% ',' UNLESS loop.last() %]
+ [% END %]
+ ],
[% IF Param('usetargetmilestone') %]
"default_target_milestone": "[% product.defaultmilestone FILTER json %]",
@@ -165,6 +175,16 @@ OLDATTACH2NEW = {
"[% milestone.name FILTER json %]"[% ',' UNLESS loop.last() %]
[% END %]
],
+ "target_milestone_detail": [
+ [% FOREACH milestone = product.milestones %]
+ {
+ "id": [% milestone.id FILTER json %],
+ "name": "[% milestone.name FILTER json %]",
+ "sortkey": [% milestone.sortkey FILTER json %],
+ "is_active": [% milestone.is_active ? "true" : "false" %]
+ }[% ',' UNLESS loop.last() %]
+ [% END %]
+ ],
[% END %]
"group": [