Trying to display the parent field or epic link as a column into my chart but cannot see this as part of my schema.
Hey there Luis,
Thanks for writing into the Atlassian Analytics Community, I'm Talar from the Atlassian team, happy to help.
There absolutely is - let me direct you over to our how-to guide here: https://confluence.atlassian.com/analyticskb/query-parent-and-child-issues-from-jira-1206787653.html
Regards,
Talar
Talar I followed the above instructions for linking parent and child but I have a issue with the first query. Namely that i can get a PARENT value for stories to Epics but I cannot get one for Epics to Initiatives. I have added the Initiative Project into my Projects drop down filter, and the initiative shows up in my SQL results, and the Epic I'm trying to find a parent for has a parent Initiative in JIRA, so where is that link stored in the Enterprise Data Lake?
Here's my SQL...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
actually I just found this - https://support.atlassian.com/jira-software-cloud/docs/upcoming-changes-epic-link-replaced-with-parent/
When will this be done?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey there David,
What you're seeing would be expected - we don’t support parent hierarchy data above Epics just yet, but there should be an update posted in Community in the next week or so on this.
Regards,
Talar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Talar. I'm loving Analytics BTW. I followed the instructions above for getting Parent but I found just doing everything in SQL is far easier than the Visual mode especially as I used to be a SQL Dev :-)
There are a few other things in the schema that I can't find ie I can't seem to find any way of getting to the 'Team' in an Issue. Are there more tables to be added to the lake at some point or am I missing something?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So very glad to hear you're enjoying Analytics!! And it sounds like a "welcome home" (back to SQL world) is in order haha
Re Custom Fields, this doco should help you find what you're looking for: https://confluence.atlassian.com/analyticskb/query-jira-custom-fields-1188411074.html
If you're not seeing the data you should be (and the projects with this field are enabled for Analytics), please pop in a ticket so we can take a look at your data specifically and help out.
Regards,
Talar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@David Green - a correction from my response yesterday.
Although that doco does detail the way to get most custom fields, the "Team" field is not yet available in the data lake yet. We do have a Feature Request for it to be added - https://jira.atlassian.com/browse/ANALYTICS-27
- Talar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Talar,
The custom fields are easy -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey there David,
Tempo data in the Atlassian data lake is a feature request https://jira.atlassian.com/browse/ANALYTICS-70
Re the recursive CTE's - is the goal here to use recursive CTEs to get the parent/child relationships? Is so, this may not be possible anyway until we get some more data / fields added to the tables.
-Talar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. I want to find the Tempo 'account' field in an Epic (under the Tempo tab). This isn't doable in the jira_issue table because this field isn't in the datalake (yet).
I can however find it in Jira_issue_history table when it's been changed either by the user or the jira bot adding it in if the Epic was added to an account in Tempo. BUT... if an Epic is cloned then the account field may have been changed in the Epic the current Epic was cloned from.
So I need to scan down the jira_issue_history table to get the previous epic that the current one was cloned from and see if account was changed in that Epic. That part is easy. But there are clones of clones of clones, so I need to do a recursive search until I get back to original epic that DOES have the account value change. Hence the need for recursion.
I did it the hard way instead (up to 5 repeat clones) cumbersome but it works :-|
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK so I managed to get the desired result but there was a lot of jiggery-pokery. I ran it all past ChatGPT and he/she/they/them couldn't help either. We are stymied on a couple of things. The main one being unable to create temporary tables (which solves the problem of non-recursive CTEs).
Is there a reason why we can't CREATE anything in Spark SQL in Analytics?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey David,
Yes indeed - CREATE is one of the restricted SQL commands in Analytics. Take a look here to see the others: https://support.atlassian.com/analytics/docs/restricted-sql-commands/
Regards,
Talar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK I can understand the need to prevent users from creating objects and other things in Analytics that would damage the integrity of the data structures and/or the data, but unfortunately that limits the usability of the SQL because we can't use the CREATE TEMPORARY TABLE command, which would be very handy (and also can help with performance.
Although I note that Spark SQL doesn't allow INSERT INTO so that limits the use of temporary tables somewhat.
Is there a way we can run a python script against the Data Lake so I can do something like the following? -
from pyspark.sql import SparkSession # Initialize Spark session spark = SparkSession.builder.appName("RecursiveExample").getOrCreate() # Register the DataFrame as a temporary view initial_df = spark.createDataFrame([("your_target_issue_key",)], ["Issue_key"]) initial_df.createOrReplaceTempView("InitialView")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.