AtlassianPS / JiraPS

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

Fix issue 229 - New-JiraIssue should take params from pipeline. #312

Closed ctolan closed 5 years ago

ctolan commented 5 years ago

Description

The here was due to how PowerShell handles input via the pipeline, see an in depth explanation with examples here: https://learn-powershell.net/2013/05/07/tips-on-implementing-pipeline-support/. The function will be unable to use $Profile in the begin block, so i moved that code into the Process block. This is necessary so that multiple new issues can be passed in and processed one after the other.

Motivation and Context

This resolves https://github.com/AtlassianPS/JiraPS/issues/229 and allows a user to fill an excel sheet or other object with new issues and pipe them into new issue. closes #229

Types of changes

Checklist: