I was able to find that 'Request Participants' is field customfield_12703 but I don't know what kind of object should I pass to New-JiraIssue Fields parameter.
I've tried:
I was able to get the following to work using the acountId of the customer accounts for the Request Participants field. I tried using the emailAddress and the displayName but those did not work.
$Parameters = @{
Project = "PROJECT_NAME"
IssueType = "ISSUE_TYPE"
Summary = "Test from JiraPS"
Description = "This is another test from JiraPS module in PowerShell"
Fields = @{
customfield_12703 = @(
@{ "accountId" = "qm:9c011c16-b415-11ec-b909-0242ac120002:93b32d64-a5c1-5829-77e5-0f98ec212451" }
@{ "accountId" = "qm:9c011c16-b415-11ec-b909-0242ac120002:2b6af13f-67c9-fc38-0b17-cf341573e082" }
@{ "accountId" = "qm:9c011c16-b415-11ec-b909-0242ac120002:4374ea62-350d-f265-1e6e-8e6b288d3fe3" }
)
}
}
New-JiraIssue @Parameters
I was able to get the following to work using the acountId of the customer accounts for the Request Participants field. I tried using the emailAddress and the displayName but those did not work.
$Parameters = @{
Project = "PROJECT_NAME"
IssueType = "ISSUE_TYPE"
Summary = "Test from JiraPS"
Description = "This is another test from JiraPS module in PowerShell"
Fields = @{
customfield_12703 = @(
@{ "accountId" = "qm:9c011c16-b415-11ec-b909-0242ac120002:93b32d64-a5c1-5829-77e5-0f98ec212451" }
@{ "accountId" = "qm:9c011c16-b415-11ec-b909-0242ac120002:2b6af13f-67c9-fc38-0b17-cf341573e082" }
@{ "accountId" = "qm:9c011c16-b415-11ec-b909-0242ac120002:4374ea62-350d-f265-1e6e-8e6b288d3fe3" }
)
}
}
New-JiraIssue @Parameters
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.