Forums

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

How can I search for an issue type and all the Task issues related to it?

Angie Affolter
Contributor
June 27, 2024

I have a custom issue type (Data Load) and I have several Task issues related  to it (Link relates to).

I want to get all the Data Load issues and all the "relates to" Task issues as a filter.

Note I have ScriptRunner at my disposal.

I see several JQL functions but not sure if any of them will work.  I see how to find related issues to a specific issue key, but haven't seen how to pull more generically.

THANK YOU!

__PRESENT

1 answer

0 votes
Trudy Claspill
Community Champion
June 27, 2024

Hello @Angie Affolter 

You would need to use the linkedIssuesOf() function from Scriptrunner. Native Jira JQL capabilities can't meet the requirement.

https://docs.adaptavist.com/sr4js/latest/features/jql-functions/included-jql-functions/issue-links#linkedissuesof

issuetype = "Data Load" or issueFunction in linkedIssuesOf("issuetype=Data Load", "relates to")

Suggest an answer

Log in or Sign up to answer