AtlassianPS / JiraPS

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

data was not an object error #418

Closed GradyD closed 4 years ago

GradyD commented 4 years ago

Trying to create a ticket and no matter how I structure my params it always fails saying data was not an object.

image

$parameters = @{
    Project = "TEST"
    IssueType = "Ticket"
    Summary = 'Test issue from PowerShell'
    Description = 'This is a test issue created from the JiraPS module in PowerShell.'
    Fields = @{
        "components" = @(@{"name" = "TEST"})
        "Assignee" = @(@{"name" = "gduncan"})
        "reporter" = @(@{"name" = "gduncan"})
    }
}

New-JiraIssue @parameters

I have tried all sorts of ways of structing assignee and reporter. Can you tell me what I'm missing?

GradyD commented 4 years ago
Fields = @{
        "components" = @(@{"name" = "Test"})
        "Assignee" = @{"name" = "gduncan"}
        "reporter" = @{"name" = "gduncan"}
    }

Issue was asignee and reporter need the hashtable, but not the array.

thatsleepyman commented 1 year ago

What was your solution?