How Can I filter .jql results?

I am using the following query in Confluence to return results from JIRA;

 

  • (issue in linkedissues(Project Scope)) and ((project = P1) or (project = P2)) and ("Internal/External" = external)
With the following display settings;
  • Display as Table, Columns to display: Key, Release Note Description & Linked Issues
What I want this to return is a list of all the records which are a part of the Project Scope belonging to Projects P1 & P2 which is then displayed with the settings mentioned above.
The problem I have though is that because I have the Linked Issues column being displayed, this is displaying links to Projects P1 and P2 (which is fine), but also to Project P3 - which I don't want.
Is there any way to specify which Projects I want displayed, or is it the case that because I have the Linked Issues column being displayed, it will just display ALL the linked issues regardless of the Project they are in?
Thanks!

2 answers

1 accepted

0 votes
Accepted answer

You would need the ScriptRunner plugin for JIRA (server only), since it allows you to make a subquery in the linkedIssues function. For instance:

issueFunction in linkedIssuesOf("project in (P1, P2)", "project scope")

That will only return issues linked to issues in P1 or P2 through the "project scope" link.

0 votes

Hi Steven,

If I understood it right, the query results are OK, but you want to hide some specific information of those results directly on the Confluence table.

I suppose you had a good hunt around and found out that - unfortunately - it's not a current feature, so we'd welcome you to log features and bugs with us directly at jira.atlassian.com.

In case of having any questions about Confluence or another Atlassian product that can't be found in the Atlassian documentation, please, let us know right here or rise an issue at support.atlassian.com.


Best regards,
Lucas Machado
Atlasssian Support

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,527 views 25 14
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