Do you use components for all your projects?
If the answer is no, here you are a way to remove this option in your Project dimension.
Actually, this is a trick because you need to add a new dimension called Project where Components are not available to be drilled. Remember to add it as a Custom Field in the source Cube.
Lets go to implement…
First, add in “Advanced Settings” the following code
[jira.customfield_pronly]
name = “Project only”
data_type = “string”
dimension = true
javascript_code = ”’
issue.fields.customfield_pronly = issue.fields.project.name
”’
“Update advanced Settings” and go to your cube.

Select “Project only” in your source cube.
The following picture shows the “after”.

The following picture shows the “before”.


I hope it helps!
Best regards.
Hi Juan, this article was very helpful and exactly what I was looking for. I have a question, is it possible to also include the Project Category within the custom New dimension “Project Only” and in addition have a hierarchy of Project Category follow by Project ?
LikeLike
Thank you John,
I recommend you to comment your specific case in https://community.eazybi.com/
They answer all the questions.
You can tag me there if you want with your own escenario and example pictures and I will check also.
Best regards!
LikeLike
Hi, it’s not working…in the js-testpage, it gets the right results, in eazyBI Reports, only “(none)” is shown up…any hints? Thanks!
LikeLike
It’s working for me…
Did you use the following Java Script code within your eazyBI Settings under Advance Settings section?
#
# eazyBI Custom Data Element to represent a Jira Project with no relationship to Jira Components
#
[jira.customfield_projectonly]
name = “Project Only”
data_type = “string”
dimension = true
javascript_code = ”’
issue.fields.customfield_projectonly = issue.fields.project.name;
”’
LikeLike