Multiple date values in Structure formula column

Poojaa Sudhakaran May 28, 2021

Hello there,

I'm using Structure's formula column to display all the due dates belonging to "In Progress" sub-task at story level. I'm able to achieve this using aggregate functions in structure but I'm facing issues in the format in which it is displayed - PFB, screenshot.

screenshot.jpg

Formula used:

IF(itemtype = 'issue', JOIN#CHILDREN#distinct{IF(status="In Progress",duedate)})

 and Formula column configuration:

formula configuration.jpg 

Could you help me resolve this?

Thanks,

Poojaa

1 answer

1 accepted

5 votes
Answer accepted
Philip Heijkoop _ALM Works_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 28, 2021

Hi Poojaa,

 

Phil here, from ALM Works (makers of Structure). That's an interesting little conundrum you've got, but thankfully I think we have an answer. 

At present you're performing a join operation on the child date values, and then asking the formula column to format the values for you. What we're going to do is flip that operation. As you can see in our function reference page, we have a few datetime format functions. Let's try the following formula, with the column's formatting set back to general.

IF(itemtype = 'issue', JOIN#CHILDREN#distinct{IF(status="In Progress",format_datetime(duedate, "dd/MM/yy"))})

Naturally, you are more than welcome to tweak the exact format, as you need it. Since formatting the datetime value to a pretty text piece would work the same for each one, it also preserves the distinct requirement.

Hope that helps! Please let me know if it didn't or you have any followup questions.

Phil Heijkoop

Lead Solutions Engineer

ALM Works 

Poojaa Sudhakaran May 28, 2021

Thanks Phil ! This worked 🙂

Like # people like this
Marc Dahinden January 13, 2023

Hi Phil
Your post helped me a lot.
I used your coding format_datetime(duedate, "dd/MM/yy") to display the due date in a specific format.

I extended the code to format_datetime(duedate, "dd/MM/yy hh:mm") what issues me a time as am or pm. I prefer the time as 00:00 till 23:59.

How do I code this?

Thanks

Marc

Like Dave Rosenlund likes this
David Niro
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 13, 2023

Hi @Marc Dahinden ,

Rather than "hh:mm", you will want to use "HH:mm"

Hope this helps!

Best,
David

Like Dave Rosenlund likes this

Suggest an answer

Log in or Sign up to answer