I have a Confluence template. I want to put on the top of the template a variable to be use in 6 queries I have in the same template instead of to have to replace the value in every query each time the value changes.
Based on what I understand, this is only to be use in a text query and not in a JQL query.
Are there any way to do it to be use in a JQL query?
You're correct that Jira doesn't natively support using variables directly in JQL queries. You can try with options like utilizing built-in JQL functions, which act similarly to variables. For instance, functions like currentUser() and startOfDay() can be seamlessly integrated into JQL queries.
For example, you can use the following query: "text assignee = currentUser() AND updated > startOfDay()". This allows you to dynamically reference values like the current user or start of day, enhancing your querying capabilities.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Assigning variables automatically to queries in a Confluence template can be achieved through a straightforward process.
When someone creates a page using this template, they'll be prompted to enter a value for the QueryParameter variable, which will then be automatically inserted into all relevant queries. This reorganized approach eliminates manual updates across multiple queries.
Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.