Skip to content

Commit

Permalink
change JiraState to a alphabetically ordered list
Browse files Browse the repository at this point in the history
  • Loading branch information
TK5-Tim committed Feb 3, 2025
1 parent 04f8fc7 commit fc235d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions WASP/Private/Invoke-JiraObserver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ function Invoke-JiraObserver {
# aktueller Stand Tickets von Jira holen (Get Request)
$IssueResults = Get-JiraIssues

# Filtere die Informationen, um den aktuellen Jira-Status mit dem aus der Datei gelesenen Status vergleichen zu können
$IssuesCurrentState = @{}
# Filtere die Informationen, um den aktuellen Jira-Status mit dem aus der Datei gelesenen Status vergleichen zu können.
# Die Issues werden in eine sortierte Liste geschrieben, für verbesserte Lesbarkeit im Jira State File.
$IssuesCurrentState = [System.Collections.SortedList]::new()
$IssueResults | ForEach-Object {
$IssuesCurrentState[$_.fields.summary] = [PSCustomObject]@{
Assignee = $_.fields.assignee.name
Expand Down
2 changes: 1 addition & 1 deletion WASP/Private/Write-JiraStateFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function Write-JiraStateFile () {
#>
param(
[Parameter(Mandatory = $true)]
[hashtable]$IssuesCurrentState
[System.Collections.SortedList]$IssuesCurrentState
)

begin {
Expand Down

0 comments on commit fc235d0

Please sign in to comment.