Open crashmybed opened 2 years ago
When i try to create issue with JiraPS Module i always get error (Cannot find a parameter matching parameter name "assignee")
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`
Cannot find a parameter matching parameter name "assignee"
create issue in Jira
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`
correct set assignee field?
I had to switch to basic auth to get the assignee id number and then switch back to secure string for new-jiraissue
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
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`
Cannot find a parameter matching parameter name "assignee"
Expected behavior
create issue in Jira
Screenshots
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?