How can I adjust the T-shirt size on an epic after a that is linked to an epic is canceled.
Example: T-Shirt sizes go as follows:
XS = 50 hrs or less
S = 51-100 hrs
M = 101-250 hrs
L = 251-500 hrs
XL = 501 hrs or greater
Once a story linked to the epic is canceled - then recalculate the story points and resize the T-Shirt size accordingly. I have the below automation rule. However, no action takes place, under Audit logs "No Actions Performed." Can anyone point me to the right direction?
Trigger: When value changes for: Status
Issue type = story
branch to: parent
Action Lookup Issues:
"epic link" = {{issue.key}} AND status not in (Canceled) and issuetype = story
AND
Action Create Variable:
variable name = totalStoryPoints and smart value is: {{#=}} {{#foreach(issue in lookupIssues)}} {{issue.fields.storypoints | default(0)}} {{#if(not(last))}}+{{/}} {{/}} {{/}}
AND
Action Create Variable: newTShirtSize
Smart Value:
{{#if(totalStoryPoints >= 1 and totalStoryPoints <= 50)}}XS{{/}} {{#elseif(totalStoryPoints > 50 and totalStoryPoints <= 100)}}S{{/}} {{#elseif(totalStoryPoints > 100 and totalStoryPoints <= 250)}}M{{/}} {{#elseif(totalStoryPoints > 250 and totalStoryPoints <= 500)}}L{{/}} {{#else}}XL{{/}}
Action: Edit Issue
Field to Edit: TShirt Size
Value: {{newTShirtSize}}