JQL function powercript

Marat January 29, 2020

I'm trying to find issues with a specific"issuetype" in which a issues with a specific"issuetype" is linked.

what i tried:

project = xx and issuetype = test1 and key in hasAnyLinks(' issuetype = test2')

what i want to get:

all issues withe type test1 in project xx who have "Issue Links" to issue(s) type test2

1 answer

2 votes
Jack Nolddor [Sweet Bananas]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 29, 2020

Hi Marat,

Sadly you cannot achieve the desired search using standard features on Jira, you must go for a third-party app instead. Using i.e. JQL Booster Pack you can type the following:

 

Search Bugs under EMEA project with linked Support tickets:

project = EMEA AND type = Bug AND issue IN linkedIssuesOf("type = Support")

 

Using this app you can also query other issues relations, check:

 

References:

 

Hope this helps you to create awesome queries <3

Kind regards

Marat January 29, 2020

Thanks for the advertisement.

I already have a plugin that extends the capabilities of jql - PowerScript

Can you help me resolve the issue using PowerScript?

Jack Nolddor [Sweet Bananas]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 29, 2020

Sorry I've never used that app. Could you try the following instead?

 

project = EMEA AND type = Bug AND key IN issuesLinkedAtDepth("type = Support", 1)
Jack Nolddor [Sweet Bananas]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 30, 2020

Hi Marat,
Had you got the chance to try the suggested JQL using the issuesLinkedAtDepth() function provided by PowerScript?

Did it helped you?
Regards

Suggest an answer

Log in or Sign up to answer