JiraPS icon indicating copy to clipboard operation
JiraPS copied to clipboard

Set-JiraIssue

Open robertbatchelor opened this issue 2 years ago • 1 comments

Set-JiraIssue with parameter -Assignee returns Invoke-JiraMethod: The 'accountId' query parameter needs to be provided

-accountId is not a valid parameter for Set-JiraIssue

$user = Invoke-JiraMethod "$(Get-JiraConfigServer)/rest/api/latest/myself" Set-JiraIssue -Issue "TEST" -Assignee $user

robertbatchelor avatar Apr 15 '22 22:04 robertbatchelor

I am running in to the same issue.

Set-JiraIssue -Issue ABC-1234 -Assignee <Jira_Account_Id>

does return

Invoke-JiraMethod : The 'accountId' query parameter needs to be provided

<Jira_Account_Id> is taken from

/rest/api/3/user/search?query=<mail-address>

and does work in other cmdlets like Add-JiraIssueWatcher.

Hooch76 avatar Jul 17 '23 09:07 Hooch76