Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JiraPS throwing Resolve-DefaultParameterValue errors

Scott Holland April 7, 2025

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

 

```

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events