AtlassianPS / JiraPS

PowerShell module to interact with Atlassian JIRA
https://AtlassianPS.org/module/JiraPS
MIT License
321 stars 131 forks source link

Set-JiraIssue #452

Open robertbatchelor opened 2 years ago

robertbatchelor commented 2 years ago

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

Hooch76 commented 11 months ago

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= ``` and does work in other cmdlets like Add-JiraIssueWatcher.