Sub-bugs for custom field

Hello!

Please advise.
I have a custom field: Reviewer.
And I want to create a report that shows me the number of Sub-bugs by issue’s Reviewer.
It’s also important to note that sub bugs, as well as other Sub-Tasks, don’t have Reviewer field. Only Issues have Reviewer field (and each sub-task has an issue)

For now, it shows the only total amount of sub bugs for ALL Reviewers. And when I’m trying to filter by certain Reviewer it doesn’t work and shows empty fields.
Please see a screenshot.

I’m struggling on how to create a calculated member that shows the number of sub Bugs related to certain issue’s Reviewer.

Thanks in advance for your help.

Best regards,
Alex

Hi @Alex_Filippova

In this case, you could create a new calculated field that would inherit Reviewer from the parent to sub-task (and sub-bugs).

Try using this definition in your advanced settings page
Use your custom field ID (from Reviewer) instead of NNNNN

[jira.customfield_parrev]
name = "Parent reviewer"
data_type = "string"
dimension = true
update_from_issue_key = "subtask_parent_key"
javascript_code = '''
if(issue.fields.customfield_NNNNN && issue.fields.customfield_NNNNN.name) {
issue.fields.customfield_parrev = issue.fields.customfield_NNNNN.displayName;
}
'''

Then open the import options page and select to import the new calculated field as a new dimension “Parent reviewer” and use it instead of the original “Reviewer” field.

Martins / eazyBI support