Performance problems with an issuefunction filter

Hello,

we are using following issueFunction filter for the connection of issues in 2 projects. This filter however is extremely slow and sometimes completely fails to deliver any results back:

project = XY AND resolution = unresolved AND issuetype in (rfc, bug, improvement) AND (issueFunction in linkedIssuesOf("project=ABC", "depends on") OR issueFunction in linkedIssuesOf("project=ABC", "is required for") OR issueFunction in linkedIssuesOf("project=ABC", "relates to"))


Does someone have any idea how we could speed up this filter or any other completely different tactic how to get these results? As a workaround we are currently using just 3 different filters. But a combination of the results in only one filter would be better.

We have currently JIRA Version 6.1.7 and Scriptrunner: 2.1.16 installed.


Thanks in advance



 

4 answers

1 accepted

This widget could not be displayed.

Dieter,

You may have some measure of success with this:

project = XY AND resolution = unresolved AND issuetype in (rfc, bug, improvement) AND issueFunction in linkedIssuesOfRecursiveLimited("project = ABC", 1)

which should (in theory) pick up all the link-types in a single subquery.

I hope that helps.

This widget could not be displayed.

Hey,

I'm not entirely sure but you're iterating through the entire ABC project 3 times!!! Maybe try to limit the ABC project to sth. like: issueFunction in hasLinkType(.....) to reduce the number of issues in your ABC project.

 

Cheers

Christian

This widget could not be displayed.

Hi Christian,

 

thanks for the answer, I think I could speed the query up. I added to the certain issuetypes after the project = ABC and think it is a little bit faster now.

Do you (or anyone else) know if there is a possibility to check for all link-types in one subquery? The reason for the 3 time iterating through one project is that I have to specify every link-type in a single subquery.

This widget could not be displayed.

Hi Mark,

thanks for this. I didnt know this issuefunction recursive limited....

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

226 views 3 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you