12
Views
1
Comments
Solved
HTML/Script for JIRA Widget
Application Type
Reactive

Hello everyone,

I would like to integrate a JIRA widget into our reactive app, allowing users to easily see the latest changes. The widget will be displayed on each screen in the lower right bottom corner.

I would appreciate guidance on how to achieve this in OutSystems.

Below is the code we plan to use:

<script id='arn-floating-widget'>
    var s = document.createElement('script');
    s.type = "text/javascript";
    s.async = true;

    // You can set the appropriate logged-in user identifier below as per your logic
    var userId = "";

    s.src = "https://arn.upraise.io/rest/arn/latest/widget/widget-init?widgetId=f5fee7be-0097-45b7-ae7a-3c9b2df72447&clientKey=a982e5e7-5cdc-3c5f-a750-44bd17019eb0&userId=" + userId;

    s.onload = s.onreadystatechange = function() {
        // Add logic to load the widget or not
        var wh = new window.arnWidget();
    };

    var h = document.getElementsByTagName('head')[0];
    h.appendChild(s);
</script>

Thank you for your attention and assistance.

     


2023-02-06 14-27-11
André Smit
Solution

I am impressed every time by the immense power of OutSystems and how relatively straightforward it becomes to use once you grasp its workings.

To implement the desired functionality, I followed these steps:

  1. I inserted the provided code snippet, ensuring that the <script> tags were removed.
  2. Subsequently, I incorporated the script within the Layouts section, specifically within the LayoutTopMenu.

I sincerely hope that this information proves beneficial to anyone seeking to achieve a similar goal.

Script_Demo.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.