Skip to content

Commit

Permalink
Fixed #21
Browse files Browse the repository at this point in the history
Accounted for cases where a user did not supply a Labels parameter.
  • Loading branch information
replicaJunction committed Apr 13, 2016
1 parent 9181f39 commit 9c6187a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions PSJira/Functions/New-JiraIssue.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,11 @@ function New-JiraIssue
"description"=$Description;
"issuetype"=$IssueTypeParam;
"priority"=$PriorityParam;
"reporter"=$ReporterParam;
"labels"=$Labels;
"reporter"=$ReporterParam
}

if ($Labels) {
[void] $props.Add('labels', $Labels)
}

Write-Debug "[New-JiraIssue] Processing Fields parameter"
Expand Down

0 comments on commit 9c6187a

Please sign in to comment.