Versions Compared

Key

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

As there us no workaround available for Jita not

\uD83D\uDCD8 Instructions

Info

Highlight important information in a panel like this one. To edit this panel's color or style, select one of the options in the menu.

...

The live fields are not applied to the Jira native Log Work screen. This article provides a workaround to use live fields in the Jira work log screen using the lfExecuteJS() function along with jQuery.

Workaround Steps

  1. Live Fields Main Script:

    Here's an example of how the main script might look:

    Code Block
    languagejs
    lfExecuteJS("LiveFields/javascript.js");
  2. Creating JavaScript Logic:

    Create a JavaScript file named javascript.js containing the following code. This code utilizes jQuery to modify the behavior of elements on the Log Work screen:

    Code Block
    languagejs
    $(document).on('DOMNodeInserted', function(e) {
        if (e.target.id == "log-work-dialog") {
            setTimeout(function() {
                AJS.$("#log-work-submit").prop("disabled", true);
            }, 1000);
        }
    });

    The JavaScript code listens for inserted elements in the DOM and targets the "log-work-dialog" element. It then disables the "log-work-submit" button after a one-second delay.

Additional Resources