Issue with “Web Link"

Hi.
I need to create a report that shows issues that have a Web Link.
The Web Link is present in Jira item in Link section

I tried to create import link in this way :

[jira.customfield_weblink]
name = "weblink"
inward_link = "links to"
outward_link = "links to"
multiple_values = true

But it is not works.

Thanks for your help.


Hi @Giampi,
welcome in eazyBI community! :slight_smile:

For web links, you will need to create JavaScript customfield in Advanced settings. Detailed instructions about how to add new JavaScript customfield, you will find here - https://docs.eazybi.com/eazybijira/data-import/custom-fields/javascript-calculated-custom-fields

The JavaScript code is this:

[jira.customfield_weblink]
data_type = "string"
name = "Linked web URL"
dimension = true
multiple_values = true
split_by = ","
javascript_code = '''
var newlist = new Array;
getDocument("issue/"+ issue.key + "/remotelink", {ignoreErrors: [404]}, function(result){
  if (result) {
    for (var i = 0; i < result.length; i++) {
      var object = result[i].object;
      var application = result[i].application;
      if(object && _.isEmpty(application)){
        newlist.push(result[i].object.url);
      }
    }
    issue.fields.customfield_weblink = newlist.join(",");
  }
});
'''

best,
Gerda // support@eazybi.com