Skip to content

V1Meta queries only returning first result of multivalue attribute (e.g. TaggedWith) #37

@WesleyWeber

Description

@WesleyWeber

If I request the TaggedWith property via SELECT or just as a base attribute with WHERE, V1Meta will only return the first tag of a Story/Epic. This is an actual issue that may cause people headaches.

There are 4 tags on this epic:
for x in v1.Epic.where(Number=epic):

print (x.TaggedWith)
--prints "Tag1"

for epic in z:
for result in v1.Epic.select('Number','TaggedWith').where(Number=epic):
print (result.TaggedWith)
--prints "Tag1"

I have confirmed that if you go through the query.v1 endpoint, you will get what you expect:

http://baseURL/InstanceName/query.v1

Payload YAML Body ==
from: Epic
select:
- TaggedWith
where:
Number: E-10021

Response
[
[
{
"_oid": "Epic:520947",
"TaggedWith": [
"Tag1",
"Tag2",
"Tag3",
"Tag4"
]
}
]
]

Originally posted by @fahrenberger in #23 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions