[Rt-commit] rt branch, 5.0/rest2-collection-role-fields, updated. rt-5.0.1-22-g31eea83853
? sunnavy
sunnavy at bestpractical.com
Tue Mar 2 19:17:21 EST 2021
The branch, 5.0/rest2-collection-role-fields has been updated
via 31eea838530d6d0911651931b8fbfe6b59d3d6ed (commit)
via 948e04763a3eae2e8c5c6339c07216793e666a90 (commit)
from 3e86271c57b0a0d75ec5ef64f66533058f46ccb2 (commit)
Summary of changes:
lib/RT/REST2.pm | 38 +++++++++++++++++++++++++++++++-------
1 file changed, 31 insertions(+), 7 deletions(-)
- Log -----------------------------------------------------------------
commit 948e04763a3eae2e8c5c6339c07216793e666a90
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Mar 3 07:05:33 2021 +0800
Fix typo in REST2 doc
diff --git a/lib/RT/REST2.pm b/lib/RT/REST2.pm
index 2ea9fb3201..2b4dc9a3b1 100644
--- a/lib/RT/REST2.pm
+++ b/lib/RT/REST2.pm
@@ -1229,7 +1229,7 @@ example):
"name" : "My Custom Field",
"values" : [
"CustomField value"
- },
+ ]
}
]
}
commit 31eea838530d6d0911651931b8fbfe6b59d3d6ed
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Mar 3 06:41:01 2021 +0800
Document role fields for ticket search result
diff --git a/lib/RT/REST2.pm b/lib/RT/REST2.pm
index 2b4dc9a3b1..03139df285 100644
--- a/lib/RT/REST2.pm
+++ b/lib/RT/REST2.pm
@@ -1192,14 +1192,14 @@ You can use additional fields parameters to expand child blocks, for
example (line wrapping inserted for readability):
XX_RT_URL_XX/REST/2.0/tickets
- ?fields=Owner,Status,Created,Subject,Queue,CustomFields
+ ?fields=Owner,Status,Created,Subject,Queue,CustomFields,Requestor,Cc,AdminCc,CustomRoles
&fields[Queue]=Name,Description
Says that in the result set for tickets, the extra fields for Owner, Status,
-Created, Subject, Queue and CustomFields should be included. But in
-addition, for the Queue block, also include Name and Description. The
-results would be similar to this (only one ticket is displayed in this
-example):
+Created, Subject, Queue, CustomFields, Requestor, Cc, AdminCc and
+CustomRoles should be included. But in addition, for the Queue block, also
+include Name and Description. The results would be similar to this (only one
+ticket is displayed in this example):
"items" : [
{
@@ -1231,7 +1231,31 @@ example):
"CustomField value"
]
}
- ]
+ ],
+ "Requestor" : [
+ {
+ "id" : "root",
+ "type" : "user",
+ "_url" : "XX_RT_URL_XX/REST/2.0/user/root"
+ }
+ ],
+ "Cc" : [
+ {
+ "id" : "root",
+ "type" : "user",
+ "_url" : "XX_RT_URL_XX/REST/2.0/user/root"
+ }
+ ],
+ "AdminCc" : [],
+ "CustomRoles" : {
+ "RT::CustomRole-1" : [
+ {
+ "_url" : "XX_RT_URL_XX/REST/2.0/user/foo at example.com",
+ "type" : "user",
+ "id" : "foo at example.com"
+ }
+ ]
+ }
}
{ … },
…
-----------------------------------------------------------------------
More information about the rt-commit
mailing list