How to bulk modify user ids using CLI?

Vineeth S Holla December 23, 2020

Hi, I have a file with predefined User IDs and its associated Email IDs listed, now I want to update the User IDs to Email IDs in bulk. How can this be done using Bob Swift CLI.

I can use updateUser action to update a single User ID but how multiple User IDs can be updated in bulk?.

Please help me with this...

2 answers

1 accepted

0 votes
Answer accepted
Reshma Begum _Appfire_
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 Leaders.
December 28, 2020

Hi @Vineeth S Holla

Thanks for posting your requirement!

We are from the Bobswift support team and we have created a support ticket for your request. Please access the Support request https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-5518 and once you signup, please let us know your username so that we can add you to the reporter of the support request.

To modify userId's in bulk, please use the CLI action as given below.

--action runFromCsv --file updateuser.csv --common "-a updateUser"   

and modify the column name for the email address in your CSV file as "newUserId". Please see the screenshot below for your reference.

2020-12-29_11-56-55.png.   

The action will update the UserId's of the respective users mentioned in the CSV file with the corresponding email addresses from the file.

Please let us know if you have any questions.

 

Thanks,

Reshma

Vineeth S Holla December 31, 2020

Thanks a lot Reshma, this is working as per my requirement...

Like Reshma Begum _Appfire_ likes this
0 votes
Sanjana _Alacriz_ December 26, 2020

Hello Vineeth,

Looks like this is what you are looking for : https://confluence.atlassian.com/jirakb/bulk-update-user-information-in-jira-server-644875261.html

 

--Sanjana

Vineeth S Holla December 27, 2020

No Sanjana, I have tried the solution present in the link, but I am getting the error saying: 'xargs' is not recognized as internal or external command, after running below line:

cat data.txt | xargs -n 2 sh -c './jira.sh --server https://SERVER --user USER --password PASSWORD --action updateUser --userId $0 --userEmail $1'



Suggest an answer

Log in or Sign up to answer