Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to create a global variable that can be called in all the projects of my organization

Romain Lavie September 27, 2022

CONTEXT:

Our organization has several projects.

Our organization works by quarter. For each epic and ticket of a project we fill in the associated quarter.


Field : quarter
Possible values: Q1/Q2/Q3/Q4

We use the add-on "sheets" to visualize in synthetic form all the epics and tickets of a project.

To display all the epics and tickets of a project linked to a quarter, we have to filter by quarter for each project.

GOAL:

We want to create a sheet view that automatically displays the epics and tickets for the current quarter (Q4 for example) without having to filter by quarter for each project.

IDEA:

Create a global variable (X) in JIRA and at the beginning of each quarter assign it the value of the starting quarter: Q1 or Q2 or Q3 or Q4. For example, for this starting quarter, the value assigned to variable (X) would be Q4.

For the sheets view of each project create a JQL search so that the sheets view by default displays the epics and tickets linked to the value of the variable X.

So for each project, the default sheets view will show only the epics and tickets related to Q4 without the user having to filter by quarter for each project by manually selecting Q4.

QUESTION:

Is it possible to configure such a global variable in JIRA, assign it a value, and call it in a JQL search function?

Thanks in advance for your help that would be very valuable!

1 answer

1 accepted

1 vote
Answer accepted
Tom Lister
Community Champion
September 27, 2022

Hi @Romain Lavie 

Jira does not support global variables. (Although some applications line Bamboo can).

If it existed there would need to be a mechanism built in to access it.

The option I know of are:

1) JQL reporting, create filters and reports based on date range, e.g. for Q1

dueDate >=startOfYear() and dueDate < startOfYear("+3M")

2) Automation for Jira to set a Q* value on issue creation based on date.( If the conditions allow dynamic date checks)

3) Scriptrunner - to derive and set Q* using groovy scripting

4) For the Q* custom field, change the default value every quarter. This is pretty close to having a global value setting

Romain Lavie September 27, 2022

Hi @Tom Lister thank you for your help!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events