# Report showing user unassigned but its assigned

**URL:** <https://community.eazybi.com/t/report-showing-user-unassigned-but-its-assigned/14168>\
**Category:** Questions & Answers\
**Tags:** jira-reports\
**Created:** [November 2, 2023, 2:09pm UTC](https://community.eazybi.com/t/report-showing-user-unassigned-but-its-assigned/14168 "2023-11-02T14:09:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnneDixon](https://community.eazybi.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@AnneDixon](https://community.eazybi.com/u/AnneDixon)\
**Post date:** [November 2, 2023, 2:09pm UTC](https://community.eazybi.com/t/report-showing-user-unassigned-but-its-assigned/14168/1 "2023-11-02T14:09:53Z")

</div>

I created a scope change report. I drilled into the issues added by user. The report is showing some stories are unassigned but when I drill through the unassigned and go into each story, they are assigned to someone. How do I fix this?

 ![image](https://community.eazybi.com/uploads/default/original/2X/a/a3020cfb36764e6fe0d4ac532a49171ec3ff7c3a.png)

---

<div class="post-metadata">

**Author:** ![Elita.Kalane](https://community.eazybi.com/user_avatar/community.eazybi.com/elita.kalane/32/14957_2.png) [@Elita.Kalane](https://community.eazybi.com/u/Elita.Kalane)\
**Post date:** [November 13, 2023, 7:56pm UTC](https://community.eazybi.com/t/report-showing-user-unassigned-but-its-assigned/14168/2 "2023-11-13T19:56:50Z")

</div>

Hi @AnneDixon  
Thanks for posting your question!  
The reason you see values returned for “Sprint issues added” under unassigned member, even though they are assigned to someone, might be because, at the time the issues were added to Sprint, they were not assigned to anyone.

You might want to import a new dimension, “Current Assignee”, to return “Sprint issues added” against Current Assignee. Here is a Community post that will guide you how to import the “Current Assignee” dimension:

> [@Pull Transitions by Current Assignee, not Assignee at Time of Transition](https://community.eazybi.com/t/pull-transitions-by-current-assignee-not-assignee-at-time-of-transition/7453):
>
> I have created a report that track the number of times a ticket is moved from Peer Review to In Progress. I want this report to pull by the current assignee, however, it appears it’s pulling by the assignee at the time of the transition. For example, Denis should not have transitions assigned to him as those were moves he made but the ticket currently is assigned to someone else. This is my formula for the Transition to Status During Sprint calculated measure. ([Measures].[Transitions to sta…

Best wishes,

Elita from [support@eazybi.com](mailto:support@eazybi.com)

---

<div class="post-metadata">

**Author:** ![AnneDixon](https://community.eazybi.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@AnneDixon](https://community.eazybi.com/u/AnneDixon)\
**Post date:** [December 12, 2023, 3:37pm UTC](https://community.eazybi.com/t/report-showing-user-unassigned-but-its-assigned/14168/3 "2023-12-12T15:37:40Z")

</div>

I tried using the code you provided below in the advance settings but it said Missing “return”. Is there something I am doing wrong?

[jira.customfield\_currentassignee]  
name = “Current Assignee”  
data\_type = “string”  
dimension = true  
javascript\_code = ‘’’  
if (issue.fields.assignee) {  
issue.fields.customfield\_currentassignee = issue.fields.assignee.displayName;  
}  
‘’’

---

<div class="post-metadata">

**Author:** ![Elita.Kalane](https://community.eazybi.com/user_avatar/community.eazybi.com/elita.kalane/32/14957_2.png) [@Elita.Kalane](https://community.eazybi.com/u/Elita.Kalane)\
**Post date:** [December 13, 2023, 7:18am UTC](https://community.eazybi.com/t/report-showing-user-unassigned-but-its-assigned/14168/4 "2023-12-13T07:18:03Z")

</div>

Hi @AnneDixon  
You should add the code in the general eazyBI advanced settings ([Advanced settings for custom fields](https://docs.eazybi.com/eazybi/data-import/data-from-jira/jira-custom-fields/advanced-settings-for-custom-fields)).

 ![image](https://community.eazybi.com/uploads/default/original/2X/3/394f800699342e54c1d9b0f4501592d87488ad9a.png)

Best wishes,

Elita from [support@eazybi.com](mailto:support@eazybi.com)
