Is it possible to recreate this formula in Jira Cloud Structure?
//Granularity - length of the bar chart in pixels
WITH multiProgressBarWithImage(progressArray, maxProgress, imagesArray, imageForRemaining, granularity) = (
WITH bar(width, image) = (IF width > 0: """!$image|height=20,width=$width!""" ELSE ""):
WITH barCounts = progressArray.MAP(FLOOR($ / maxProgress * granularity)):
progressArray.INDEXES()
.MAP(bar(barCounts.GET($), imagesArray.GET($)))
.MERGE_ARRAYS(bar(MAX(0, granularity - barCounts.SUM()), imageForRemaining))
.JOIN("", "", "")
):
WITH todo = COUNT#truthy {status = "to do"}:
WITH inProgress = COUNT#truthy {status = "in progress"}:
WITH done = COUNT#truthy {status = "done"}:
WITH link(name) = """https://www.example.com/images/$name.png""":
multiProgressBarWithImage(
ARRAY(todo, inProgress, done), COUNT{1},
ARRAY("Red", "Orange", "Green").MAP(link), link("Gray"),
200
)
This is the multi-tiered progress bar based on images. When I put it in a column, it renders as text like it doesn't understand the code. I know color has changed, but before I pursue a long dead end path, just want to verify it's even possible to render images in the formula column like this with cloud structure.
I'm using Structure Cloud version 1.53
thanks
Hello @Robbie Edwards ,
At the moment, this is not possible to recreate in Structure Cloud. The formula was created using the Markup language where on Cloud it is Markdown and currently supports text formatting, color and emojis.
Please feel free to share your ideas here in our customer ideas portal!
Best,
David
Is there another solution to build a custom stacked bar chart like in the example?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.