Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Structure tasks from current level

Alex
Contributor
July 25, 2024

Hello!

I have the following hierarchy issues in Structure

- TST-1 (type1)
- TST-2 (type2)
- TST-3 (type3)
- TST-4 (type3)
- TST-5 (type3)

And I have such a need: if the task is of type type3, then I need to get all the tasks from the current level into an array. I tried to do something like this

WITH currentLevelTasks = ARRAY#ancestors#fromLevel=-1{key}:

But this is not what I need..

Case: Processing task TST-4

Expected result: Array "TST-3, TST-4, TST-5"

Result: Array "TST-2, TST-4"

2 answers

1 accepted

1 vote
Answer accepted
Stepan Kholodov _Tempo_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 25, 2024

Hello @Alex 

You can do it with a formula like this:

if issuetype = "type3": parent{join#children{issuekey}}

The formula will return issuekeys of all siblings for each issue of type3.

I hope this helps. If you need further assistance or if you have other questions about Structure, please reach out to us directly at our support portal.

Best regards,
Stepan
Tempo (the Structure app vendor)

Alex
Contributor
July 25, 2024

Oh,  thank you so much!!!! <3

Like Stepan Kholodov _Tempo_ likes this
0 votes
Dick
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 25, 2024

Why not use Jira all by itself? 

LookupIssues using JQL
'key' = {{issue.key}}  and   issuetype in ( "type3")

Suggest an answer

Log in or Sign up to answer