Python3 query of group_members failes KeyError: 'name'

Joseph Fota April 15, 2021

I have a very simple python script which queries for group members:

#!/usr/bin/python3

from jira import JIRA

jira = JIRA(basic_auth=(username, token), options={"server": server})

users = jira.group_members('jira-developers')
print (users)

 

# ./users.py
Traceback (most recent call last):
File "./users.py", line 11, in <module>
users = jira.group_members('jira-developers')
File "/usr/local/lib/python3.6/site-packages/jira/client.py", line 1011, in group_members
result[user['key']] = {'name': user['name'],
KeyError: 'name'

 

Is there a newer jira module I should be pip3 installing?

1 answer

0 votes
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 23, 2021

Hi,

There is an open issue on Github

https://github.com/pycontribs/jira/issues/977

As a workaround please try to use the rest API

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events