Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. At the very top of the script, define the kind of link type you would like to hide.

    Code Block
    string [] issueLinkTypeName = {"Relates"};

  2. Next add a basic webhook. For detailed information on SIL Webhooks, see this documentation on Webhooks configuration.

    Code Block
    WebhookPayload httpRequestPayload = getWebhookPayload();
    string httpMethod = httpRequestPayload.httpMethod;
    string httpPayload = httpRequestPayload.payload;
    WebhookParam[] httpQueryParams = httpRequestPayload.queryParams;
    // string firstQueryParamName = httpQueryParams[0].name;
    string issueKey = httpQueryParams[0].values[0];

  3. Next, structure your basic JSON response by adding link data to those links you want to hide. The idea here is to return alternating values of the issue id ( link id ( For more details on available variables, see this documentation on predefined structure types for JIssueLink.

    Code Block
    string [] result;
    JIssueLink [] links = getIssueLinksDetail(issueKey);
    for (JIssueLink link in links) {
        if (arrayElementExists(issueLinkTypeName, {
            result +=;
            result +=;
    result = replace(result, "|", ",");
    string json = "{\"linkData\":";
    json += "[";
    json += result;
    json += "]}";

  4. Lastly, append the json data to the response and respond.

    Code Block
    return true, 200;


Page Properties

Related issues