Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Sometimes you need to repeat the same command multiple times, for example you may need to create a lot of users, projects etc. In this situation instead of running the command manually with different inputs, you can put all the information in an csv file (or you can export it from another system that supports csv files) and execute the command in a loop. It sounds long but actually it is a single liner.

displayName1,emailAddress1,password1,username1
displayName2,emailAddress2,password2,username2
....

while IFS=',' read -r displayName emailAddress password username || [ -n "$displayName" ]; do jira user create --displayName "$displayName" --emailAddress "$emailAddress" --password "$password" --username "$username"; done < input.csv

  • No labels