I have Jira Command Line client installed on my Ubuntu linux system. I am running a script which reads users from a file and then add each user to a particular grp. my script goes like this:
#!/bin/bash
while read -r user
do
echo $user
./jira.sh --action addUserToGroup --userId "$user" --group "group1"
done < users.txt
where I have a text file "users.txt" containing about 2872 users. The scipt is running fine, except for the fact it is taking a lot of time. It is taking almost 1.5 minute to add a single user o the group. so, if we talk about 2872 users it will need about 30 hrs. so, wanted to ask that is there a poblem with my scrip that it is taking to long or is it ok for the script to take this much of a time.