Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do you bulk delete or deactivate users?

nudo
March 9, 2016

This question is in reference to Atlassian Documentation: Add, edit and remove users

How do you bulk delete or deactivate users?

3 answers

1 accepted

1 vote
Answer accepted
Andrew MacCormack
February 2, 2014

OK, so I worked out my own answer:

from jira.client import JIRA

def import_jira_bugs:
  jira=JIRA(your_args_here)
  resp=jira.fields()
  fmap = { }
  for i in resp.json():
     field_name=i[u'name'].encode('ascii','ignore')
     field_id=i[u'id'].encode('ascii','ignore')
     fmap[field_name]=field_id
  pprint.pprint(fmap)


0 votes
S
Contributor
March 25, 2021

Found something in documentation that could be helpful to others...

Field Mapping 

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 30, 2014

REST API has a mentod to retrieve all fields with its name, id etc. See https://docs.atlassian.com/jira/REST/latest/#d2e393

Andrew MacCormack
January 30, 2014

Thanks, I've seen that already. If I wanted to delve into manually parsing stuff from the REST API directly, I wouldn't be using jira-python: is there a way to get this info from within jira-python?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events