Specific information for the issue is not updated

Hi, I receive information using this code in Advanced settings.

[jira.customfield_category]
name = “Project Category”
dimension = true
data_type = “string”
javascript_code = ‘’’
var projKey=issue.fields.project.key;
var projURL = “/rest/api/2/project/”+projKey;
getDocument(projURL, {ignoreErrors: [404]}, function(projInfo){
if(projInfo != null) {
if(projInfo.projectCategory != null) {
issue.fields.customfield_category = projInfo.projectCategory.name;
}
}
});
‘’’

And, change the project category, and import the issue.
But, information for the issue is not updated on eazyBI.

Why can’t it be changed?

Hi @younghoon,

I understand that you are importing project component for each issue using JvaScript calculated custom field.

Incremental data import does not see the changes because when changing project category, update date is not updated. Accordingly, eazyBI considers that there are no changes made for an issue and does not project category update in the incremental data import.
You may run data re-import to refresh all changes in eazyBI: https://docs.eazybi.com/eazybijira/data-import/jira-issues-import#JiraIssuesImport-Re-importallissues

Usually, we recommend the solution with Jira Misc scripted custom field (or you may use another scripted custom field app in Jira, like Script Runner) to get project category for each issue.
There is an example with Jira Misc scripted custom field which could be imported into eazyBI: https://docs.eazybi.com/eazybijira/data-import/data-from-jira-and-apps/jira-misc-custom-fields#JiraMiscCustomFields-Projectcategory

Best,
Zane / support@eazyBI.com