At the end of a sprint, i want to send a slack message summarising how many tickets of each type were completed. This is to track how much time we're spending on technical debt per sprint compared to feature work.
So far I have created the workflow: On Sprint Complete -> Issue Lookup (get issues completed this sprint) -> send slack message.. now I'm trying to write the code in here.
Ideally I'd be able to iterate through the issue types (e.g. Story, Bug...) then filter the full list of completed issues for each issue type, something like:
{{#lookupIssues.issueType.distinct}}
{{#lookupIssues}}
{{#if(equals(issue.issueType, issueType))}}
Found match! (output something here)
{{/}}
{{/}}
{{/}}
This has nested list iterations, which I'm unsure is supported?
Then I tried the branching strategy -> With advanced branching after the issue lookup, I can set a smart value with varIssueType={{lookupIssues.issueType.distinct}}, then I'm trying to write code something like:
Branch on {{varIssueType}}:
{{#lookupIssues}}
Issue key is {{key}} but {{varIssueType}} doesnt work here!
{{/}}
It looks like smart values from branches don't work inside list iterators either?
Is there another way of doing this?
Nested list iterators (and filtering) are possible only when you have lists within lists. Otherwise I find you cannot perform the inner functions on {{.}} as it has not attributes to name the smart values.
Instead perhaps consider:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.