Forums

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

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 Champion
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
Community Champion
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