Useful Scripts to Automate certain features of Atlassian Cloud
Using REST API to bulk change users on Atlassian Cloud.
- Create Users & Create Groups in Bulk ( Perform a Jira Cloud to Jira Cloud User Import)
- Delete Users in Bulk
- Bulk Change Managed Users Email Address
- Bulk Delete Jira Issues
- Bulk Deleting Users in User Management
- Bulk Changed Claim domain email Address
- Bulk Create Users and Add them to Groups on JIRA Cloud
- Bulk delete Jira Issues including sub-task
-
Make use that you have user permission right on the file.
-
On your Terminal run
chmod u+x <filename>.sh
-
Then to initiate the script run
./<filename>.sh
-
you will require your emailAddress and API-TOKEN to authenticate your user. get one from https://id.atlassian.com
There are two files that needs to be supplied.
- The User file
- The Membership file
The User
file should include the accountID, emailAddress in the below format.
id name active date LastLogin 5559343a3813hag User 1 [email protected] Yes 2 Nov 2019 Never logged in
You can remove the header of the csv file prior to beginning the script.
The Group
CSV file should include the groupname, accountID, emailAddress in the below format.
- This script doesn't do much validation
- Ensure that the file is correct as below
groupname id name active date Fit group 5559343a3813hag User 1 [email protected] Yes 2 Nov 2019
Please remove the header of the csv file prior to beginning the script.
The CSV file format should look like below after you've downloaded it. Depending on how many applications you have on your Cloud Instance, you can remove the other columns and just leave 6 columns as shown below.
id name active date LastLogin 5559343a3813hag User 1 [email protected] Yes 2 Nov 2019 Never logged in
-
The email column should be the
new emailaddress
you want to change to e.g. from [email protected] to [email protected] so on the file you should place [email protected], because that's the email you want to change to. -
Please remove the header of the csv file prior to beginning the script.
The CSV file format should look like below.
id name active date LastLogin 5559343a3813hag User 1 [email protected] Yes 2 Nov 2019 Never logged in
Please remove the header of the csv file prior to beginning the script.
Ensure that the Project is visible to you; that means, you have "BROWSE" Project Permission and the "DELETE" Issues Permission of the Permission Scheme