Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

EazyBI: Get issue summary an key in different columns

JIRAZEUS November 24, 2016

We need a report with this columns (in this order):

Affected version | issue summary | issue key | other things...

 

How can we get this? 

 

thanks

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Sir Mārtiņš Vanags
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 27, 2016

Hi JIRAZEUS,

 


The easiest way to get this in the report would be importing issue summary as a separate Issue property in "Measures" dimension using this code

 

[jira.customfield_issueName]
name = "Name"
data_type = "string"
javascript_code = '''
var name = issue.fields.summary;
if (name != 0) {
  issue.fields.customfield_issueName = name;
}
'''

 

 

You could copy it to your eazyBI advanced settings and then open eazyBI import settings and import this new custom field as property.

 
And for Issue key, you could use this following MDX code when defining a new user-defined measure:
 

[Issue].CurrentMember.Key


Then you could select these both measures as well as other measures needed for the report (see attachment).
 

 key & summary.jpg

 

Please contact support@eazybi.com if you have further questions regarding this!

 

Kind regards,

Martins Vanags / support@eazybi.com

Mohamed El Taweel March 14, 2019

Hi Martins

I tried This in Jira 7.13 and not working

Kind Regards

Sir Mārtiņš Vanags
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2019

Hi,

 

Perhaps, you could reach out to support@eazybi.com and provide more details on the steps you tried as I just tested on Jira 7.13 with eazyBI 4.7.3 and it works as expected.

But there is actually an easier way since on of the recent eazyBI versions.

You could click on any "Issue" dimension member from the report and choose to show "only keys"

Martins / eazyBI support

 

Issue summary without key.png

Mohamed El Taweel March 14, 2019

Hi Martins,

The code itself which raised the issue

[jira.customfield_issueName]
name = "Name"
data_type = "string"
javascript_code = '''
var name = issue.fields.summary;
if (name != 0) {
issue.fields.customfield_issueName = name;
}

 

summary.JPG

 

Kind Regards,

Mohamed

Sir Mārtiņš Vanags
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2019

Hi,

It seems you didn't copy the whole code from my previous answer.

It must have the last line as well even if it has just 3 symbols (which closes the Javascript code).

Martins

Mohamed El Taweel March 14, 2019

Hi Martins,

In this thread I don't see any more code, so where I can find the whole code or can you put it here

 

Kind Regards

Sir Mārtiņš Vanags
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2019

Hi,

This is the correct code (from the above in this thread):

[jira.customfield_issueName]
name = "Name"
data_type = "string"
javascript_code = '''
var name = issue.fields.summary;
if (name != 0) {
  issue.fields.customfield_issueName = name;
}
'''

 

p.s. don't miss the last code line which I can't see in the screenshot

Martins

Mohamed El Taweel March 14, 2019

Hi Martins,

 

Unfortunately, I can not see/find any more lines in the screen shot, only last line with three dots ...

 

Thanks

Sir Mārtiņš Vanags
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2019

Hi,

There should not be more lines, this is the whole code.

Note that in your provided screenshot (above in this thread) the code does not have line with 3 dots, does it?

Perhaps they disappear when you try to copy the code from the community.

Please type them manually and try this code again.

 

Martins

TAGS
AUG Leaders

Atlassian Community Events