Hello
I'd like to represent Progress as a sequence of unicode emojis, like ✅✅✅⬜⬜ to represent 60% of Done. This is easy to show in summaries in Jira and Confluence.
With Automation, I can count the number of tasks with status 'Done' and the total count of issues, so it is easy to calculate a unique % ratio, like 60%✅.
However, i cannot see how to create something like a "Do while" or "For X" loop in side the Automation rule in order to printout my 5 caracters... or a Repeat() function for example
Any idea?
Thank you
Vincent
That may be done using the rightPad() text function with two parts:
When you already have number fields, those may be used as parameters to rightPad(). If instead the values are stored as Created Variables, numeric conversion is required. And that is a bit trickier with text functions.
For example:
{{varNull.rightPad(varNull.length().plus(varCheckedCount.asNumber), "✅").rightPad(varNull.length().plus(varUncheckedCount.asNumber).plus(varCheckedCount.asNumber), "⬜")}}
How that works:
I have used this same technique to create horizontal bar charts with rules.
To learn more about this technique, please see this article I wrote on using variables as numbers: https://community.atlassian.com/t5/Automation-articles/Automation-concepts-Using-Created-Variables-as-Numbers/ba-p/2953116
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.