Availability
This routine is available starting with Power Scripts™ 4.6.0 for Jira 7.4.x.
Syntax
addCustomer(username, project)
Description
Adds an existing customer or a list of customers to a specified Service Desk project.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
username | String[] | Yes | The customers' username. |
project | String | Yes | The key of the selected project. |
Return type
boolean
Returns "true" if the operation succeeded.
Example
Example 1
return addCustomer({"customer1","customer2"}, "JSD");
Example 2
return addCustomer("customer@cprime.com", "JSD");
See also