youngmon/atlassian-qna huggingface dataset:
How do I display by one custom field and filter by another in Atlassian Analytics
Asked by andrew_pass:

Hi,

My scenario is -

I've got a custom field, Change Strategy, I have another multi-select custom field for Business Area.

I have a chart in Analytics at the moment which gives me a bar chart of -

Open Epics by Change Strategy with a break down by status category.

I need to be able to filter this by Business Area where the user selects the appropriate area, epics can be tagged however to multiple areas.

Currently I've gotten as far as being able to filter and see **just**the issues that contain only the single value but where a ticket is tagged to multiple these aren't coming back.

Anyone got any ideas please? Would be greatly appreciated!

Thanks!


Answers:
author: Waseem Abbas
body: Hi! To filter by Business Area with multi-select values, you'll need to adjust your chart settings. Ensure your filter logic supports "contains any" rather than "equals" for multi-select fields. This way, epics tagged with multiple areas should be included if they match any of the selected values. If you're using JQL, something like `cf[Business Area] in (value1, value2)` can be useful. Check your chart's filtering options or consider creating a custom filter to handle multi-select fields effectively.[Hope this helps!](https://waseemsays.com/)

comments: author: Don DMack
body: This statement ***Ensure your filter logic supports "contains any"*** creates a syntax error in Atlassian Analytics for me. I use "***IN"***.
Temporary or Staging table to avoid parallel execution on same set of tables for multiple charts
Asked by Ganesan Seethapathy:

Hi Team

Please advise whether we can create a temporary or staging table to avoid parallel execution on same set of tables for multiple charts.

<br />

Problem Statement:

In my dashboard i have 33 Charts/reports, most of them hit the same set of tables to retrieve data and it slows down the overall load time of the dashboard

Pease guide me on this

Thanks


Answers:
author: Agaci Avinas
body: Hi [@Ganesan Seethapathy](/t5/user/viewprofilepage/user-id/5535637) ,

Thank you for reaching Atlassian Analytics support. I understand that your dashboard is slow due to the number of charts.

I would suggest you check our documentation on [triaging performance issues here](https://confluence.atlassian.com/analyticskb/triage-your-performance-issues-1216971465.html). Having said that, you can create custom tables in the data lake to handle parallel processing. You can find the steps to create custom tables on this [page](https://support.atlassian.com/analytics/docs/create-custom-tables-and-columns/).

Feel free to reach us if you have any further questions.

Regards,

Agaci
My Filter in my Query does seem to work
Asked by Don DMack:

I have created a chart to show a count of specific components for all teams (that have those components) in a specific date range by month.

It seems my query is giving all the issues for each team in the date range. It's not making use of the component filter. The result selects the correct **Date Range** , **Issue Status, Status Category** but doesn't filter on the **Components**.

***![Analytics Filter.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/342338i8CFAF948ED52A549/image-size/large?v=v2&px=999 "Analytics Filter.jpeg")Are you able to see what the problem is? Below is my query:***

1.SELECT DATE_FORMAT ('Issue cycle time'.'work ended at','yyyy-mm') AS 'Month of Work ended at',  
2. 'Project'.'name' AS Project Name',  
3. COUNT('Project component'.'name') AS ' Count of all Name'  
4.FROM 'jira_issue_cycle_time' AS 'Issue cycle time'  
5.INNER JOIN 'jira_issue' AS "Issue' ON "Issue cycle time'.'issue_id' = 'Issue'.'issue_id'  
6.INNER JOIN 'jira_issue_status_history' AS 'Issue status history' ON Issue status history' '.'issue_id' = 'Issue'.'issue_id'  
7.INNER JOIN 'jira_issue' AS "Issue' ON "Issue cycle time'.'issue_id' = 'Issue'.'issue_id'  
8.INNER JOIN 'jira_project_component' AS 'Project component' ON 'Project component'.'project_id' = 'Project'.'project_id'  
9.WHERE 'Issue status history'.'ended_at' \>= TIMESTAMP('2023-11-01')  
10. AND 'Issue status history'.'ended_at' \< TIMESTAMP({TODAY}) + INTERVAL 1 DAY)  
11. AND ('Issue'.'status_category' = 'Done')  
12. AND 'Issue'.'status' IN ('Done','TEAM DONE')  
13. AND 'Project component'.'name' IN ('TDEBT','Rfactor')  
14.GROUP BY DATE_FORMAT('Issue cycle time'.'work_ended_at','yyyy-MM') , 'Project'.'name'  
15.ORDER BY COUNT('Project component'.'name') ASC, DATE_FORMAT ('Issue cycle time'.'work_ended_at','yyyy-MM') ASC, Project'.'name' ASC  
16.LIMIT 100000;


Answers:
author: Tracy Chow
body: Hi Don,

Your query will need to go through the [jira_issue_component_mapping table](https://support.atlassian.com/analytics/docs/schema-for-jira-software/#Issue-component-mapping) to properly filter on issues associated with a component.

To do this, open the [Join path panel](https://support.atlassian.com/analytics/docs/edit-the-join-path-of-your-visual-mode-query/) to change the join to go through the mapping table. If the mapping table isn't an available option, you can add a column from the mapping table to your query, select the desired join path, and then hide the column after the query.

If you run into any trouble, feel free to open a support ticket like Tejaswi mentioned, and we would be happy to help.


author: Tejaswi G
body: Hi [@Don DMack](/t5/user/viewprofilepage/user-id/5142133)

This is Tejaswi from the Analytics Support Team and here to help.

From the shared query, The Join and the filters seems to correct. Can you please log a ticket with us so that we can have look and the query results and debug the issue further?

You can log a ticket with us at <https://support.atlassian.com/contact>.

Kind Regards,  
Tejaswi
Schemas for Atlassian Analytics
Asked by Don DMack:

Hello, where can I get the ***Schemas*** for Atlassian Analytics so that I can write some reports?


Answers:
author: Inder Singh
body: Hi [@Don DMack](/t5/user/viewprofilepage/user-id/5142133) : You can check out the support documentation for data model and schema - <https://support.atlassian.com/analytics/docs/understand-the-data-model-of-the-atlassian-data-lake/>.

You can also go the data source settings -\> Schema tab and click "Visualize". That will generate the schema diagram for you. The "Schema" tab also has details of all the tables in the Data Lake.

![Screenshot 2024-08-02 at 3.16.15?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/339781i8391868D560904E2/image-size/large?v=v2&px=999 "Screenshot 2024-08-02 at 3.16.15?PM.png")

Cheers,

Inder

comments: author: Don DMack
body: Thank you Inder. This is helpful.


author: Don DMack
body: Inder, do you know where I can fin a full listing of the Global Variables?


author: Inder Singh
body: [@Don DMack](/t5/user/viewprofilepage/user-id/5142133) : Here is the link to the documentation <https://support.atlassian.com/analytics/docs/what-are-variables/>


author: Don DMack
body: Thanks!


Tags: atlassian-analytics

schema
Connected Google Sheet no longer works even though the Schema is synced
Asked by Tim Lee:

Hi,

I've recently been using AA linked with a google sheet as well as Jira Software. It's been working fine until this morning when I synced it. It's started telling me my columns no longer exist and I need to remap them. And then when I click the remap dropdown nothing happens when I select one of tables. Is this a bug? Or can it only handle a certain number of sheets tabs? Any advice on what I can do as I don't really want to have to start again and end up with hours and hours of lost work.

Whilst new tabs were added to the sheet and picked up, the old ones weren't changed, so I don't know why it no longer recognises the data.

![AA Screenshot.png](https://community.atlassian.com/t5/image/serverpage/image-id/338830i61C1638BD40993CA/image-size/large?v=v2&px=999 "AA Screenshot.png")

It also doesn't load my data when I go to create a chart. Nothing happens when I select a table.

![AA Screenshot 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/338832iB6974C64854FCE5C/image-size/large?v=v2&px=999 "AA Screenshot 2.png")


Answers:
author: Tracy Chow
body: Hi Tim,

Were the tabs or columns in your Google Sheet renamed at all?

If you can [open a ticket](https://support.atlassian.com/contact/#/?inquiry_category=technical_issues) with our support team and grant us permission to access your site, we can dig in further to see why your Google Sheet data source is throwing the warnings and see how to get this resolved for you.

Thanks,  
Tracy

comments: author: Tim Lee
body: Hi Tracy, no they weren't, which is why I found it odd. There were new tabs created on the sheet which it picked up but nothing else. I'll raise a ticket, thanks.


author: Tim Lee
How do I get a control to connect to a chart when it won't do so automatically and I don't know SQL?
Asked by Dylan Demery:

I used the Atlassian AI to write a query, then copied that query code into a new chart. Then I tried to add a control but it won't connect to the chart and I don't know enough SQL to add a control in SQL. How can I figure this out?


Answers:
author: Nayan Pandey
body: Hello Dylan!  

I am Nayan from the Atlassian Analytics team, happy to help!  

The control variables need to be added to the where clause in your SQL query. Here is an example of how to add a calendar control to charts in SQL mode:  

*SELECT COUNT(DISTINCT \`Issue\`.\`issue_id\`) AS \`Count of unique Issue ID\`*   
*FROM \`jira_issue\` AS \`Issue\`*   
*WHERE \`Issue\`.\`created_at\` BETWEEN **{CALENDAR_NAME.START}** AND**{CALENDAR_NAME.END}***   

Here, **{CALENDAR_NAME.START}** and**{CALENDAR_NAME.END}** are the variable controls that we have added in our SQL query to connect the chart with our control. Now, when we select a date range on the Dashboard, these values will be fetched and the chart will be dynamically filtered on the basis on the calendar control values.  

I'd also recommend checking the below links to understand how controls work and how to add them to existing charts:  
**- Document** - <https://support.atlassian.com/analytics/docs/use-variable-controls-for-interactive-filtering/> (Every control type has a section called In a SQL mode query where you can find how to add the controls in SQL mode.)  
**- Dashboard controls Demo Video**- <https://www.youtube.com/watch?v=dM0cdIqzvxY>  

Let me know if this helps.  

Regards,  
Nayan

comments: author: Dylan Demery
body: This definitely helped, Nayan! Thanks so much!
How to add Issue "Reporter" name to a list, and also add to criteria
Asked by David Chainey:

I have an Analytics Dashboard, and I'm having trouble adding and working with the Jira \[Reporter\] field. I need to include \[Reporter\] Name in all my listings of Jira tickets and graphs and also use it in criteria for objects, graphs, etc.

However, when I edit and click "Issues," it's not included in the list of available fields. The closest I could get was the Reporter ID when expanding the schema.


Answers:
author: Tracy Chow
body: Hi David,

User name data can be found in the "Account" table. <https://support.atlassian.com/analytics/docs/schema-for-organization-data/>

You can add the "Name" column from the "Account" table to get the reporter name. Just make sure that the join path is going through the "Reporter account ID" so that it's returning the reporter name, and not the assignee or creator name.

![Screenshot 2024-07-25 at 5.38.18?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/338052i6648F77F6D2EADB3/image-size/large?v=v2&px=999 "Screenshot 2024-07-25 at 5.38.18?PM.png")

Let me know if this works for you.

Regards,  
Tracy


Tags: reporter

reporter-name
Can you create a dashboard with saved filters?
Asked by Bruner_ Heather:

I am trying to create dashboards with saved filters in Atlassian Analytics. Currently every time I navigate out of the dashboard and back in, my filters reset.

I would like dashboards with static filters but data that refreshes. Is that possible?


Answers:
author: Jessie Turpin
body: Hey Heather! You would need to set a default value in any control on your dashboard. You can do this by editing the control and entering the desired values in the 'Default values' box.

![Screenshot 2024-07-25 at 2.41.54?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/338011i5DE7232C31059AD6/image-dimensions/290x382?v=v2 "Screenshot 2024-07-25 at 2.41.54?PM.png")

Note that if you have created a control with the control editor, you'll need to first check the 'Initial value(s)' box in the [control's settings](https://support.atlassian.com/analytics/docs/set-up-a-dropdown-control/#%E2%80%9CDropdown%E2%80%9D-control-settings). Then you'll be able to add any default values you want the control to use.

![Screenshot 2024-07-25 at 2.44.52?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/338012i5576B26CCB243CB0/image-dimensions/403x260?v=v2 "Screenshot 2024-07-25 at 2.44.52?PM.png")

I hope that helps! Let us know if you run into any issues adding your default values.

comments: author: Penny H-D
body: This works great! Thank you!


author: Penny H-D
body: [@Jessie Turpin](/t5/user/viewprofilepage/user-id/4493061) I used the solution above and it works great but the data in the dashboard is broken. To get the data I have to remove the initial value project and then re-add.

Suggestions on how to fix?

comments: author: Jessie Turpin
body: Hey [@Penny H-D](/t5/user/viewprofilepage/user-id/5166138) ! You might want to check that the initial value you set is spelled and capitalized exactly as the value actually appears in your chart. If that doesn't work, could you create a [support ticket](https://support.atlassian.com/contact/) with our team and share more details about your chart? That would help us be able to investigate this further for you.


Tags: atlassian-analytics

cloud
Compare Q4 from the last year with the current year
Asked by CESAR DALDOSSO:

Hello, I want to collect data from a specific period , which is the Q4 from last year and compare it with the data from this year.

I will do this using status history but cannot find a way of doing

*Started at between and including*

*{CURRENT_CALENDAR_YEAR.START.SUB(1,'year')}*

*and*

*{CURRENT_CALENDAR_YEAR.END.SUB(1,'year')}*

*With this I have the period of the last year.*

How can I obtain the period of the last quarter of the last year ?

one example

I want to compare the average number of issues resolved on the current year (2024) and compare with the average number of issues resolved within the last quarter of the last year (Q4 2023)


Answers:
author: Nayan Pandey
body: Hi Cesar,  

I am Nayan from the Atlassian Analytics team, happy to help!  

Can you try using the following relative date variable:   
{CURRENT_CALENDAR_YEAR.START.SUB(15,'month')} and {CURRENT_CALENDAR_YEAR.END.SUB(12,'month')}  

This would fetch Q4 for last year.

comments: author: CESAR DALDOSSO
body: hi, [@Nayan Pandey](/t5/user/viewprofilepage/user-id/5511616) this solves my issue, tks!
Can I create 2 sets of controls for 2 sets of charts in the same Dashboard (same Data Source)
Asked by Don DMack:

Can I create 2 sets of controls for 2 sets of charts in the same Dashboard (same Data Source). For Example:

**Dashboard A using DataSource A**

\> Control 1a, Control 1b , Control 1c

\> Chart 1, Chart 2

\> Control 2a, Control 2b

\> Chart 3, Chart 4, Chart 5

Hopefully you can follow what I'm asking. I do know I can accomplish what I'm asking by setting up 2 different Dashboards but I want to know if I can combine what I'm looking to accomplish on one Dashboard?


Answers:
author: Jessie Turpin
body: Hi Dave! Thanks for the question. It is possible to have one dashboard with multiple controls that are not connected to every chart on the dashboard. If you have created your controls to [Automatically connect to new and existing charts](https://support.atlassian.com/analytics/docs/set-up-a-dropdown-control/#Automatically-connect-to-new-and-existing-charts) then you'll need to remove that automatic control filter in any charts that you don't want connected to the control.

![Screenshot 2024-07-18 at 11.30.59?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/336421i3F4B11507FB8BC5B/image-size/large?v=v2&px=999 "Screenshot 2024-07-18 at 11.30.59?AM.png")

The screenshot above has an example query where I have two controls connected. The purple filter is where my control with the 'Automatically connect to new and existing charts' setting is connected while the green filter is where I manually connected a control. You'd just need to select the X to the right of any control filters that you don't want included in your query.

If you haven't used the 'Automatically connect to new and existing charts' setting, then you'll only need to [manually connect](https://support.atlassian.com/analytics/docs/set-up-a-dropdown-control/#Manually-connect-to-charts) the control to the relevant charts. For example, you can choose to only connect Control 1a, Control 1b , and Control 1c in charts 1 and 2 while Control 2a and Control 2b could be connected to charts 3, 4, and 5.

Let me know if you run into any issues when setting up your controls and charts on your dashboard!

comments: author: Don DMack
body: [@Jessie Turpin](/t5/user/viewprofilepage/user-id/4493061) Thanks for the clear explanation. I will try it!


author: Jessie Turpin
body: You're welcome, [@Don DMack](/t5/user/viewprofilepage/user-id/5142133)! Let us know if you run into any issues when you try it out.


Tags: atlassian-analytics

cloud
How to check if variable is empty
Asked by Giga Shubitidze:

I have one control (dropdown) called "PROJECT" where I choose jira project and then one chart where I list all issues of selected project.

Fore some reasons, in custom column of the chart table I want to insert 0s if the variable {PROJECT} is empty (when no project is selected in "projects" dropdown) and 1s if some any project is selected.

I'm using this formula in custom column:

case when {PROJECT} is null then 0 else 1 end

The formula inserts just 1s. But nothing is selected. Help me how to identify if nothing is selected in the control?


Answers:
author: Tracy Chow
body: Hi Giga,

Can you try this instead?

```
case when {PROJECT} = '' then 0 else 1 end
```

This worked for me with a single select dropdown.
How to check if the variable is empty
Asked by Giga Shubitidze:

I have one control (dropdown) called "PROJECT" where I choose jira project and then one chart where I list all issues of selected project.

Fore some reasons, in custom column I want to insert 0s if the variable {PROJECT} is empty and 1s if some any project is selected.

This formula is not working:

case when {PROJECT} is null then 0 else 1 end

It sets just empty values in the cells.

Can someone suggest where is the problem?


Answers:
author: Marc - Devoteam
body: Hi [@Giga Shubitidze](/t5/user/viewprofilepage/user-id/5504379)

Welcome to the community.

I expect this is an automation you are running.

Can you provide the automation details for us community member to help you out.

This will provide us with context and details.

comments: author: Giga Shubitidze
body: Sorry it was question regarding Atlassian Analytics. Is it wrong place to post?


author: Marc - Devoteam
body: No, but I can't help you out with this.

I would suggest to raise an issue with Atlassian Support related to your question.


Tags: cloud
Databricks connectivity - Unity catalogues
Asked by Andrew Dumville:

When connecting to databricks lakehouse to access datasets, seems to be only allowed to select hive catalogues - does Atlassian analytics support unity catalogues..  

If not, is there any work scheduled in your near-term roadmap?


Answers:
author: Tracy Chow
body: Hi Andrew,

To make sure I understand correctly, is this regarding connecting Databricks to Atlassian Analytics as a third-party data source? <https://support.atlassian.com/analytics/docs/connect-to-databricks/>

If that's right, I can submit a feature request on your behalf to have this added.

Best,  
Tracy

comments: author: Andrew Dumville
body: Yeah, that's correct.   

Databricks does not recommend building datasets using the legacy hive metastore catalogues


author: Tracy Chow
body: Thanks for the reply. I've opened the feature request ticket: <https://jira.atlassian.com/browse/ANALYTICS-284>.

I don't have an estimated timeline for when this will be worked on, so I recommend keeping an eye on the ticket for updates.
How do I specify a directory for the MSI install that has a space in it?
Asked by Angel Velasquez:

Hello,

<br />

I need to set up a silent install config for SourceTree Enterprise and I'm currently attempting to use this as my install command:

msiexec.exe /i SourcetreeEnterpriseSetup_3.4.18.msi ACCEPTEULA=1 INSTALLDIR="C:\\Program Files\\SourceTree" /quiet  

This didn't work but I found out that it will work if I remove the space in "Program Files" I thought having the directory path in a string would make it treat it as a string instead of a literal. My command gets treated as

msiexec.exe /i SourcetreeEnterpriseSetup_3.4.18.msi ACCEPTEULA=1 INSTALLDIR=C:\\Program Files\\SourceTree /quiet

Where Files\\SourceTree is treated as a MSI flag and crashes the install. How can I include a space for the silent install within the INSTALLDIR flag? I double checked and it does work when I do not have a space but I have to install it to Program Files given the circumstances.


Answers:
author: Jim Knepley - ReleaseTEAM
body: The escape character in PowerShell is the grave-accent(\`), so try this:

```
msiexec.exe /i SourcetreeEnterpriseSetup_3.4.18.msi ACCEPTEULA=1 INSTALLDIR=`"C:\Program Files\SourceTree`" /quiet
```

ref: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules?view=powershell-7.4>
The repository cannot be created in a folder on the server
Asked by NikVladi:

I'm new to Git and Sourcetree.

I have a server. It has a folder called Scripts.

The network path is \\\\MyServer\\Scripts. I'm trying to create a local repository in this folder and an error appears (screenshot). If I try to create a local repository, for example, here \\\\MyServer\\Scripts\\OtherFolder, then everything works fine.

I don't understand why this is happening. I need to create a repository specifically in the \\\\MyServer\\Scripts folder. What's going on? What should I do?

![Screenshot 2024-09-09 235129.png](/t5/image/serverpage/image-id/346345i3AA647191E4CE046/image-size/large?v=v2&px=999 "Screenshot 2024-09-09 235129.png")


Answers:
author: NikVladi
body: Installed GitHub Desktop.

When trying to create a repository there was a "trust..." button or something like that. And everything worked fine.

With Sourcetree I found a workaround. Created a repository in \\\\MyServer\\Scripts\\Scripts. Then moved it to \\\\MyServer\\Scripts. Deleted the \\\\MyServer\\Scripts\\Scripts folder.  
Tried to open the repository in \\\\MyServer\\Scripts a new error appeared related to the folder owner.  
Run this command:  
C:\\Users\\UserName\\AppData\\Local\\Atlassian\\SourceTree\\git_local\\git-cmd.exe  
git config --global --add safe.directory //MyServer/Scripts/  
And everything worked.  
I think you need to create a trust mechanism like in GitHub Desktop.
Make dark and light theme follow system configuration
Asked by Florian Noirbent:

Hi,

I'm looking for an option to make the sourcetree theme automatically follow the OS configuration. It does not seems to exist, but did I missed it ? or is it a planned feature ?

I'm using windows and changing it multiple times everyday


Answers:
author: Theodore Brown
body: I have the same issue. It's annoying to have to always manually change the SourceTree theme when other apps support automatically matching the system setting.