Skip to content

JIRA.group_members: return <OrderDict <User>> #920

Open
@chr7

Description

@chr7

Is your feature request related to a problem? Please describe.
I need to process user accounts. Thus, beside single users, I have to retrieve group members too. While the function JIRA.user returns class User type, the function JIRA.group_members returns an ordered dictionary of dictionaries instead of an ordered dictionary of type User. So, I have to deal with two different types.

Another situation: the returned value of a user picker field is of type JIRA.user. If I want to merge that returned value with values returned by JIRA.group_members to get a single list of users, it is cumbersome to achieve that.

Describe the solution you'd like
Function JIRA.group_members should return a (ordered) dictionary of type JIRA.User

Describe alternatives you've considered
Calling for each group member JIRA.user - but this means that the data that has already been retrieved with the function JIRA.group_members is retrieved again which is inefficient and not necessary.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions