Forums

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

How to group issues with the MAP function using Jira for Structure

soduor
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!
September 29, 2022

I'm nesting filters into folders under a JQL query in a structure . I'm worried that my if statements will grow and quickly become unmanageable.  I've thought about using the map function that would only have me use one if function and pass values in from an array but it doesn't work for me. How can I re-write my function to make it work or is there another solution to abstract the multiple if statements ?

 

Current implementation

if(IF (JQL{summary ~ "Mango"}, Mango) , "Mango") or

if(IF (JQL{summary ~ "Apple"}, Apple) , "Apple") or

if(IF (JQL{summary ~ "Orange"}, Orange) , "Orange") or

if(IF (JQL{summary ~ "Cherry"}, Cherry) , "Cherry")

 

Proposed solution

MAP(ARRAY("Mango", "Apple", "Orange", "Cherry"), (keyword -> IF (JQL{summary ~ keyword}, keyword) )

 

I followed this article for my current implementation

https://community.atlassian.com/t5/Jira-questions/Nesting-filters-into-folders-under-a-JQL-query-in-a-structure/qaq-p/1666172

1 answer

0 votes
Stepan Kholodov _Tempo_
Community Champion
June 29, 2023

Hello @soduor 

The Formula column and Structure's functionality in general evolved since the post you mentioned, so there might be a different solution available for your use-case. But we would need more details about your setup and goals to be able to advice anything in particular. If you need assistance, please reach out to us directly at our portal: https://tempo-io.atlassian.net/servicedesk/customer/portal/6/group/1051 and we'll get back to you shortly.

Best regards,
Stepan Kholodov
Tempo

Suggest an answer

Log in or Sign up to answer