Linked Issue Query
Asked by aarthie_ramachandran:

I have a support project that can have many linked issues in many projects. e.g. support project is TKT and can have linked issues in projects A, B, C, D.

I am looking for a JQL to identify all the issues in project = TKT that have linked issues in Project A and the status of project is not done. I am having difficulty using the linked issues

query


Answers:
author: Jason Chayer
body: [@aarthie_ramachandran](/t5/user/viewprofilepage/user-id/4443920) - could the jql below work? I have a similar situation where I use a project for expedited issues, but have linked tasks to development projects.  

project = "TKT" AND issueLinkType IN ("whatever your linked issue type is named") AND status != Done

comments: author: aarthie_ramachandran
body: No, I am looking for issues that can be in Project A, B or C


author: Jason Chayer
body: [@aarthie_ramachandran](/t5/user/viewprofilepage/user-id/4443920) - how do the linked items from A, B, or C appear in project TKT?


author: aarthie_ramachandran
body: [@Jason Chayer](/t5/user/viewprofilepage/user-id/4966970) It will be something like this. Bold text is Jira fields, Italicized is my explanation, data is actual Jira data

|------------------------------------------|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
| **Issue-Key** *Issue-Ids in Project TKT* | **Inward issue link (Blocks)** *TKT can have linked issues in Project A or Project B* | I**nward issue link (Problem/Incident)** *TKT can have linked issues in Project B or Project C* |
| TKT-12488                                | GT-6751                                                                               |                                                                                                 |
| TKT-12459                                | FX-16199                                                                              |                                                                                                 |
| TKT-12398                                |                                                                                       | FX-16170                                                                                        |
| TKT-12380                                |                                                                                       | PS-11369                                                                                        |


author: Jason Chayer
body: [@aarthie_ramachandran](/t5/user/viewprofilepage/user-id/4443920) - if the Inward issue link (blocks) and Inward issue link (Problem/Incident) are only used for projects A, B, and C, you should be able to use the filter...  

project = "TKT" AND issueLinkType IN (("Inward issue link(Blocks)","Inward issue link (Problem/Incident)")) AND status != Done


author: Marc - Devoteam
body: Hi [@aarthie_ramachandran](/t5/user/viewprofilepage/user-id/4443920)

This indeed requires an app that can extend JQL options.

I'm in favour of JQL Search Extensions for Jira, I think they offer more functionality.

[https://marketplace.atlassian.com/apps/1214791/jql-search-extensions-for-jira?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1214791/jql-search-extensions-for-jira?hosting=cloud&tab=overview)


author: Samuel Gatica
body: Hi [@aarthie_ramachandran](/t5/user/viewprofilepage/user-id/4443920)

This cannot be accomplished using the native JQL functions, but if you have ScriptRunners installed you can use the [linkedIssuesOf](https://docs.adaptavist.com/es/latest/run-a-search/jql-functions#id-.JQLFunctionsvCurrent-linkedIssuesOf) function to get all the issues linked.

Example:

*project = TKT AND issueFunction in linkedIssuesOf("project = A AND statusCategory != Done")*

Hope this helps!

Best regards

Sam


Tags: cloud

jira-cloud