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

Hi,

Apologies for bringing back to life such an old thread.

I’m trying to do exactly what is described in this thread, however whenever I click on “Create” I get the error message: Missing ‘return’ and a Google search for “eazyBI missing return” brings up no results.

Here are the steps I followed:

  1. Login to eazyBI, pick an account and go to the “Source data” tab.
  2. Click on “edit” under actions for a Jira application source.
  3. Click on the “Custom fields” tab.
  4. Scroll all the way at the bottom of the page, click on “Add new calculated field”.
  5. Defined an internal name and display name, defined data type as string.
  6. Pasted the above code by Gerda, clicked on “create”.

The ability to pull weblinks is required for a single account, not everyone on the system. That being said, I get the impression the above is meant to be a system-wide change. Is it possible to get this working for a single account by adding the info under a specific account’s data source?