Forums

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

Getting "Test" issues that are linked to "User story" issues (not directly)

Nitzan Matalon June 28, 2023

Hey,

I have user stories that are linked to tasks, and these tasks are linked to tests. I have a filter that contains a list of specific user stories.

I would like to get all the related tests for these user stories.

Is that possible doing it by filter somehow?

Thank you very much

2 answers

0 votes
Nitzan Matalon June 28, 2023

@Sachin Dhamale 

Hey,

I succsecfully got all the tasks that are linked to the user stories:

issueFunction in linkedIssuesOfRecursiveLimited("filter=Userstories-tests ", 1) and issuetype= task

(I needed that step beacasue I have tests that are linked directly to the user stories- I don't want them).

Now the next step is to get the tests that are linked to the tasks i got in the result of the query above. the link between these tasks and tests is "is tested by", but I can't find the right syntax to create a subqeury or something.

I tried this query but it's not right:
issueFunction in linkedIssuesOfRecursive(issueFunction in linkedIssuesOfRecursiveLimited("filter=Userstories-tests ", 1) and issuetype= task),"is tested by"))

I would appreciate your help with writing it.

Thank you

0 votes
Sachin Dhamale
Community Champion
June 28, 2023

@Nitzan Matalon 

So you have Story --> Task --> Test

So first you need to get all the Task and then the Test Issues which are link to the Task

By default its not possible. You can use the script runner plugin there you get the JQL linkedIssuesOfRecursive() function through which you can get the all linked issues to the story

Refer this

Accept the answer if it helps

 

Thanks,

Sachin

Nitzan Matalon June 28, 2023

Hey,

I succsecfully got all the tasks that are linked to the user stories:

issueFunction in linkedIssuesOfRecursiveLimited("filter=Userstories-tests ", 1) and issuetype= task

(I needed that step beacasue I have tests that are linked directly to the user stories- I don't want them).

Now the next step is to get the tests that are linked to the tasks i got in the result of the query above. the link between these tasks and tests is "is tested by", but I can't find the right syntax to create a subqeury or something.

I tried this query but it's not right:
issueFunction in linkedIssuesOfRecursive(issueFunction in linkedIssuesOfRecursiveLimited("filter=Userstories-tests ", 1) and issuetype= task),"is tested by"))

I would appreciate your help with writing it.

Thank you

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events