Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Custom JQL Filter using the value of an excerpt

Is it possible to use the excerpt on a page as a variable in a JQL filter query on that same page? Use case ( because we can't have custom user macros in Confluence Cloud ):

  • We have sprint planning Confluence docs which show multiple Jira filters on the page.
  • This template is reused every sprint and each filter then has to individually be updated by hand to update the JQL query to use the new sprint value
    • Would rather have a custom variable that could be used in the JQL query that uses an excerpt which sets the sprint string name on the page.

1 answer

0 votes
Shannon S Atlassian Team Jul 29, 2021

Hi Jane,

Thank you for raising this question. The JQL query is part of Jira, which the integration allows Confluence to reference.

There has been a feature request, but it's closed as of 2017:

I did some investigation to see what I could learn about any way to accomplish this. I discovered the discussion below, which has a  potential workaround:

Confluence Variables in JIRA JQL macro  

I hope this helps!

Take care,



Hello @Shannon S

I just tried following the link above and it seems to be broken.

Can you please confirm that the link is correct as I also have the same requirement as Jane?


To be clear this following this link: Confluence Variables in JIRA JQL macro  gets me to:

link broken.jpg

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

248 views 2 5
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you