AtlassianPS / JiraPS

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

Can't create issue in Jira server #458

Open crashmybed opened 2 years ago

crashmybed commented 2 years ago

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`

  1. 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?

Rogueit commented 2 years ago

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