Versions Compared

Key

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

...

...

...

...

title
Info

Config summary

Here's what you will have after completing this guideline:

  • LiveFields scripts ready;

  • A new LiveFields config added. 

Info
title

Required permissions

Requires either Jira System Administrators or Jira Administrators global permission. If you don't have such privileges, ask your Jira administrator for help.

Info

LiveFields is a feature in Power Scripts that adds a lot of extra safe-guards ensuring that the users use the functionality as it was intended to be used. We'll use it specifically to modify the default project Jira Issue Create and Edit/View screens so that they are kept as simple as possible so as to not over complicate and ensure users would enter the correct fields when submitting their absences.

  1. Go to Jira administration > Manage apps > SIL Manager.

  2. Follow steps 2-6 from under the 'Creating file tree' section from 'Scripts setup' page of this user manual. 

    Note
    titleImportant
    The new script code can be found below.

    Code Block

...

themeConfluence
  1. createDirectory("BigPicture/Absences/LiveFields");
     
    string [] files = "hideComment.js|main.sil|watch.sil";
    for(string f in files) {
        createFile("BigPicture/Absences/LiveFields/" + f);
    }

  2. The following folder tree along with some empty script

...

  1. files should be created after executing the above-mentioned. 

...

  1. 94.pngImage Added

  2. Use the right click and the 'Delete' option to remove the 'createFiles.sil' script as it is no longer needed. Click 'OK' when prompted to confirm the action.

...

  1. 95.pngImage Added

Configuring LiveFields scripts and functionality

...

Info

Each script can be opened e.g. in TextEdit (for Mac) or any other text editor.

hideComment.js (download file)

  1. Once opened in a text editor, copy the script text and paste it into the corresponding file from under the 'LiveFields' folder in the SIL Manager. Click the disc icon to save changes.
    Image Modified
    You should be presented with a green 'Save done' text afterwards.

...

  1. 97.pngImage Added

main.sil (download file)

  1. Once opened in a text editor, copy the script text and paste it into the corresponding file from under the 'LiveFields' folder in the SIL Manager. Click on a green button to run the code.

...

  1. 98.pngImage Added

    You should see the following confirmation afterwards.

...

  1. Image Added
  2. Make sure to save the changes.

...

  1. Image Added


    You should be presented with a green 'Save done' text afterwards.

...

  1. Image Added

watch.sil (download file)

  1. Once opened in a text editor, copy the script text and paste it into the corresponding file from under the 'LiveFields' folder in the SIL Manager. Click on a green button to run the code.

...

  1. Image Added


    You should see the following confirmation afterwards.

...

  1. Image Added
  2. Make sure to save the changes.

...

  1. 100.pngImage Added102.pngImage Added

    You should be presented with a green 'Save done' text afterwards.

...

  1. 103.pngImage Added

Once all the LiveFields scripts are run and saved, it is time to configure the functionality itself which comes down to adding the main.sil script to a LiveFields configuration. 

Go to Jira administration > Manage apps > Power Apps Config > Power Scripts > Live Fields and click the 'Add new...' button.Image Removed

...

Fill all the required fields and choose the "Absences" project on which this LiveFields functionality will apply. For the script field, click on the pencil icon and choose the main.sil script. Finally, click 'Select'.Image Removed

...

Image Removed

Click 'Add' to finish the process. Image Removed

...

You should end up with your LiveFields configuration looking like this. Image Removed

...