Skip to content

Commit

Permalink
add sprint start and end date parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiomagalhaes committed May 20, 2024
1 parent ce8fc83 commit 4663eaa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/utils/clients/tts/azure/parsers/ministry_brands_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,16 @@ def board_column
end

def sprint
json.dig('fields', 'System.IterationPath')
path = json.dig('fields', 'System.IterationPath')
iterations.find { |iteration| iteration['path'] == path }&.dig('name')
end

def sprint_start_date
iterations.find { |iteration| iteration['name'] == sprint }&.dig('attributes', 'startDate')
end

def sprint_end_date
iterations.find { |iteration| iteration['name'] == sprint }&.dig('attributes', 'endDate')
end
end
end
Expand Down

0 comments on commit 4663eaa

Please sign in to comment.