Hey All,
I am working on a JIRA Automation + Power Automate in order to send the count of distinct issues worked on by my squad while closing the Sprint to the Teams in the form of a message on channel or group chat.
JIRA Automation rule sequence:
When: Sprint completed
Then: lookup issues
And: add value to audit log
And: Send Web Request
Add value to Log (Action):
Issue Type: {{fields.issuetype.name}} ; Stories: {{lookupIssues.where("fields.issuetype.name = 'Story'").size}}Send Web Request: Webhook body (Custom Data)
{
"totalIssues": {{lookupIssues.size}},
"storyCount": {{lookupIssues.where("fields.issuetype.name = 'Story'").size}},
"bugCount": {{lookupIssues.where("fields.issuetype.name = 'Bug'").size}},
"taskCount": {{lookupIssues.where("fields.issuetype.name = 'Task'").size}},
"spikeCount": {{lookupIssues.where("fields.issuetype.name = 'Spike'").size}}
}
-----
So, when my rule is run, i see the the log value as ---> Issue Type: Story ; Stories : 0
Which means, the smart value to calculate the count of issues of type = Story is failing.
I have tried multiple ways with aid of ChatGPT & Copilot, but efforts have gone in vain.
Note: {{issue.issueType.name}} didn't resolve to give me type = Story but {{fields.issuetype.name}} did.
Please help.
#JIRA #JiraAutomation #automation #powerautomate