I've been having issues for the past couple days so I started testing with this
```
$password = $API | ConvertTo-SecureString -AsPlainText -Force
$reporter = $h.Get_Item("Reporter")
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $Reporter, $password
New-JiraSession -Credential $cred -Verbose -debug
```
This error message Invoke-JiraMethod: The 'permissions' query parameter is required.
led me to this page from 2 days ago https://developer.atlassian.com/cloud/jira/platform/change-notice-get-my-permissions-requires-permissions-query-parameter/
How do I apply the permissions part to this code?
```
$parameters = @{
Project = "ABCD"
IssueType = "Task"
Summary = "What Title do you want to give the Issue"
Description = "The Description of the issue goes here" }
$fields = @{
reporter = @{id = "$accountid"}
assignee = @{id = "$accountid"} }
New-JiraIssue @parameters -Fields $fields
```