Closed frankz96 closed 2 years ago
n = @issue.descendants.visible.all.size
@issue.custom_values.each do |cv|
if cv.custom_field_id == 74 # Your CF ID
cv.value = n
cv.save
break
end
end
n = @issue.descendants.visible.all.size @issue.custom_values.each do |cv| if cv.custom_field_id == 74 # Your CF ID cv.value = n cv.save break end end
Thank you so mcuh! It's working.
Hi there. I want to calculate the number of subtasks and save it to a custom field value. Is there anyone can help me?