Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Records/Dictionaries] Expand `on:` in attachments #1011

Closed
jstanden opened this issue Oct 10, 2019 · 2 comments
Closed

[Records/Dictionaries] Expand `on:` in attachments #1011

jstanden opened this issue Oct 10, 2019 · 2 comments
Projects
Milestone

Comments

@jstanden
Copy link
Owner

@jstanden jstanden commented Oct 10, 2019

No description provided.

@jstanden jstanden created this issue from a note in 9.4 (To do) Oct 10, 2019
@jstanden jstanden moved this from To do to In progress in 9.4 Oct 10, 2019
@jstanden jstanden added this to the 9.4 milestone Oct 10, 2019
@jstanden

This comment has been minimized.

Copy link
Owner Author

@jstanden jstanden commented Oct 10, 2019

  • [Records/Attachments] In attachment dictionaries, the on expansion key returns information about the records the file is linked to. By default expand:[on] returns an array of linked record dictionaries with _context and id keys. The returned record types can be filtered by specifying them like expand:[on.comment,on.message], which returns only information about comments and messages each attachment is linked to (ignoring other types). The returned record dictionaries also support key expansion like expand:["on.message:_label,custom_,ticket_group_"]. Multiple expansion keys are separated with commas. Note that the expansion pattern is double-quoted.
type:worklist.records
of:attachment
query:(name:*.png on:comment)
expand:["on.comment:_label,author_,custom_"]
format:dictionaries
@jstanden

This comment has been minimized.

Copy link
Owner Author

@jstanden jstanden commented Oct 10, 2019

Implemented in 9.4

@jstanden jstanden closed this Oct 10, 2019
9.4 automation moved this from In progress to Done Oct 10, 2019
jstanden added a commit that referenced this issue Dec 10, 2019
…n key returns information about the records the file is linked to. By default `expand:[on]` returns an array of linked record dictionaries with `_context` and `id` keys. The returned record types can be filtered by specifying them like `expand:[on.comment,on.message]`, which returns only information about comments and messages each attachment is linked to (ignoring other types). The returned record dictionaries also support key expansion like `expand:["on.message:_label,custom_,ticket_group_"]`. Multiple expansion keys are separated with commas. Note that the expansion pattern is double-quoted.

~~~
type:worklist.records
of:attachment
query:(name:*.png on:comment)
expand:["on.comment:_label,author_,custom_"]
format:dictionaries
~~~

Implements #1011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
9.4
  
Done
1 participant
You can’t perform that action at this time.