# Calculated Measure shows issues that have moved issue types

**URL:** <https://community.eazybi.com/t/calculated-measure-shows-issues-that-have-moved-issue-types/1347>\
**Category:** Questions & Answers\
**Created:** [November 26, 2018, 8:41pm UTC](https://community.eazybi.com/t/calculated-measure-shows-issues-that-have-moved-issue-types/1347 "2018-11-26T20:41:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![martins.vanags](https://community.eazybi.com/user_avatar/community.eazybi.com/martins.vanags/32/8905_2.png) [@martins.vanags](https://community.eazybi.com/u/martins.vanags)\
**Post date:** [November 29, 2018, 8:08am UTC](https://community.eazybi.com/t/calculated-measure-shows-issues-that-have-moved-issue-types/1347/2 "2018-11-29T08:08:36Z")

</div>

Hi,

“Issue Type” dimension, when used with transition-related measures, would not just return issues based on current issue type. It behaves based on historical changes when used together with transition-related measures.

For your use-case, you could use eazyBI [advanced settings](https://docs.eazybi.com/eazybijira/data-import/custom-fields/advanced-settings-for-custom-fields) (code below) to define new [Javascript](https://docs.eazybi.com/eazybijira/data-import/custom-fields/javascript-calculated-custom-fields) calculated custom field which you could import (select via [import settings](https://docs.eazybi.com/eazybijira/data-import/jira-issues-import#JiraIssuesImport-JiraCustomFields)) as a separate dimension and then additionally add to page filters of your report to filter issues that are currently in “project” issue type.

```
[jira.customfield_curisstype]
name = "Current Issue Type"
data_type = "string"
dimension = true
javascript_code = '''
if (issue.fields.issuetype) {
    issue.fields.customfield_curisstype = issue.fields.issuetype.name;
}
'''

```

Martins / eazyBI support

---

_[View the full topic](https://community.eazybi.com/t/calculated-measure-shows-issues-that-have-moved-issue-types/1347)._
