How to add assignments to agents in bulk using Bamboo Command Line Interface (CLI)

This article explains how to add assignments to agents in bulk using Bamboo Command Line Interface (CLI).

Instructions

Combine the actions runFromCsv and addAgentAssignment to add assignments to agents in bulk.

  1. Create a CSV file with required data filled in the columns agent and assignment. For this example, consider a file, agentfile.csvas shown in the following screenshot:

  2. Execute the following command:

     --action runFromCsv --file bulkassignment.csv --common "--action addAgentAssignment"

    Note that this example works because the column names in the CSV file are same as the parameters required for addAgentAssignment.

It is recommended to test the command in a non-production environment before running in productionor, run the action with --simulate parameter to verify the behaviour before deploying.