You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Join now to unlock these features and more
I am using history on structure, and I am trying to count the occurrences of a field's history but I get some issues.
using a simple
.FILTER($.field = "Status")
I get all the status changes in the field:
Status -> to do, Status -> in progress etc.
I need to count the number of changes, but if I simply wrap the formula in a COUNT it gives weird results (i.e. 3 status changes but the count says 10).
How can I fix it?
Hi @Mauro Bennici , thanks for your question.
You can also reach out directly to the vendor of Structure, who should be experts on how the product works - Structure by Tempo - Jira Portfolio Management & PPM | Atlassian Marketplace
Hope this helps.
Hello @Mauro Bennici
The COUNT aggregate function indeed won't work here - such functions can only aggregate data from multiple items in the structure - e.g. counting the number of or the sum of Story Points of all child issues etc.
In your case, you need to count the number of transitions in a single issue in the same field. This formula should do it:
history.changes.FILTER($.field = "Status").size()
I hope this helps. If you need further assistance, please reach out to us directly at our support portal.
Tempo (The Structure app vendor)