JiraPS icon indicating copy to clipboard operation
JiraPS copied to clipboard

Can't create issue in Jira server

Open crashmybed opened this issue 3 years ago • 1 comments

Description

When i try to create issue with JiraPS Module i always get error (Cannot find a parameter matching parameter name "assignee")

Steps To Reproduce

  1. Open PS console
  2. Enter next code `Import-Module JiraPS

Set-JiraConfigServer 'https://jira.mydomain.local' New-JiraSession -Credential (Get-Credential target.username)

$fields = @{ project = "WAD" issuetype = "Windows Update Service" summary = "Important Issue" description = "This Issue is very important\n\n really!?" assignee = @{ value = "target.username"} Priority = 1 Fields = @{ components = @( @{ name = "WSUS"} ) customfield_10110 = @( @{ name = "Some Name" }) } }

New-JiraIssue @fields -Verbose` 4. See error

Cannot find a parameter matching parameter name "assignee"

Expected behavior

create issue in Jira

Screenshots

image

Your Environment

Jira server 8.13.20 Jira PS 2.14.6

`Name Value


PSVersion 5.1.19041.1682
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1682
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1`

Possible Solution

correct set assignee field?

crashmybed avatar Jun 23 '22 11:06 crashmybed

I had to switch to basic auth to get the assignee id number and then switch back to secure string for new-jiraissue

Rogueit avatar Jun 24 '22 17:06 Rogueit