Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monthlyReport: state => {
- var costTypes = {}
- state.monthlySprints.forEach(sprint => {
- const keys = Object.keys(sprint)
- for (const key of keys) {
- costTypes[sprint[key].cost] = 0
- }
- })
- state.monthlySprints.forEach(sprint => {
- const keys1 = Object.keys(sprint)
- for (const key of keys1) {
- if(typeof sprint[key].storypoints == "number")
- {
- costTypes[sprint[key].cost] += sprint[key].storypoints
- console.log(costTypes)
- }
- else
- {
- console.log(sprint[key].name)
- }
- }
- })
- state.report = costTypes
- return state.report
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement