Python JIRA Group information

Avijit Dey July 11, 2019

I am able to connect JIRA application using python. and able to pull some information. But i would like to know the user group information.  Means say user1 login and retrieving all info but I would like to print group details only if that user belongs on it .. 

 

How I will get Group information.

last 2 lines i tried for it but did not work 

 

 

from jira import JIRA
import sys
from jira.resources import Resource
from jira.resources import Role

options = {'server': 'https://jira-mycompany.com'}
jira = JIRA(options, basic_auth=("user1", "pwd1"))


info = jira.user(user)
info.group_members("jira-developers")

 

Now even though Group "jira-developers" not belong to user1 , but still it's showing.

 

0 answers

Suggest an answer

Log in or Sign up to answer