JQL Tricks Plugin - filterring issues

Hi,

I have a problem with JQL Tricks Plugin when I am filtering issues.

I have issues and they are linked together. Some of them are in status "Closed" and some of them in status "In Progress". I need filter issue or issues which has linked issues with status "Closed". I am using this JQL syntax:

project = "xxx" AND issue in linkedIssuesHasStatus("Closed") - it does not work.

Does someone know correct syntax ?

Vaclav

7 answers

Can you explain more about the links you are using and what is not working?

0 vote
Joe Wai Tye Atlassian Team Nov 07, 2012

Hi Vaclav,

As far as I know, it's not really possible to find an issue based on the status of the linked issue. You can however find an issue based on which issue it is linked to.

Cheers,

Joe

I have 3 issues x1,x2,x3.

x1 status = closed

x2 status = closed

x3 status = in plan

x1,x2,x3 are linked with "reletes to" so x1 relates to x2, x2 reletes to x3.

What I need is to filter issue which has linked issues with status "closed". In this case x3 should show.

When I use advanced search and place JQL question:

project = "xxx" AND issue in linkedIssuesHasStatus("Closed")

it doesn't work. I don't know if I am using wrong links (maybe x3 depents on x1,x2) or I should use different function or different JQL question.

Thank you for reply.

Vaclav

I have 3 issues x1,x2,x3.

x1 status = closed

x2 status = closed

x3 status = in plan

x1,x2,x3 are linked with "reletes to" so x1 relates to x2, x2 reletes to x3.

What I need is to filter issue which has linked issues with status "closed". In this case x3 should show.

When I use advanced search and place JQL question:

project = "xxx" AND issue in linkedIssuesHasStatus("Closed")

it doesn't work. I don't know if I am using wrong links (maybe x3 depents on x1,x2) or I should use different function or different JQL question.

Thank you for reply.

Vaclav

0 vote

Hey,

From the plugin's documentations, it seems the syntax for this is "linkedIssuesHasStatus (status,[linkType]", so how about:

linkedIssuesHasStatus ("Closed","reletes to")

or

linkedIssuesHasStatus ("Closed","is related to")

Cheers!

Hi, I have tried that, but it doesn't work. In JIRA logs is error:
com.sun.jersey.spi.container.servlet.WebComponent filterFormParameters
WARNING: A servlet POST request, to the URI ..... /jira/rest/gadget/1.0/login, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
Do you know what is it ?

I am assuming does not work means no results. Is that true?

Try this out and see if that works better for you.

issue in linkedIssuesInQuery("project = xxx AND status = Closed")

If your xxx has spaces then enter the value using escaped quotes like

\"xxx\"

You can specify the link type, but it should be optional as I read the documentation.

Hi, it is near what I need. Thank you. But I need use this:

project = "xxx" AND issue in linkedIssuesHasStatus("Closed").

When I change status to "In Progress" than it's work! But it doesnt work with status "Closed". My boss has tried that too with same resolution = nothing appears.

0 vote

Vaclav,

This should have worked. Can you please raise a support case at https://studio.plugins.atlassian.com/browse/JQLT ?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

73 views 0 5
Read article

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