Forums

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

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_
Atlassian Partner
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_
Atlassian Partner
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_
Atlassian Partner
January 30, 2020 edited

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
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events