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

This widget could not be displayed.

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.

This widget could not be displayed.

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 Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

473 views 6 6
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