Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cloud Structure markup image in formula

Robbie Edwards
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 14, 2023

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

1 answer

1 accepted

0 votes
Answer accepted
David Niro
Atlassian Partner
February 14, 2023

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

Robbie Edwards
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 17, 2023

Is there another solution to build a custom stacked bar chart like in the example?

Suggest an answer

Log in or Sign up to answer