Config summary
Here's what you will have after completing this guideline:
- LiveFields scripts ready;
- A new LiveFields config added.
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.
- Go to Jira administration > Manage apps > SIL Manager.
Follow steps 2-6 from under the 'Creating file tree' section from 'Scripts setup' page of this user manual.
Important
The new script code can be found below.createDirectory("BigPicture/Absences/LiveFields"); string [] files = "hideComment.js|main.sil|watch.sil"; for(string f in files) { createFile("BigPicture/Absences/LiveFields/" + f); }
The following folder tree along with some empty script files should be created after executing the above-mentioned.
- 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.
Configuring LiveFields scripts and functionality
Start with configuring LiveFields scripts in Jira administration > Manage apps > SIL Manager.
Each script can be opened e.g. in TextEdit (for Mac) or any other text editor.
hideComment.js (download file)
- 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.
You should be presented with a green 'Save done' text afterwards.
main.sil (download file)
- 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.
You should see the following confirmation afterwards. - Make sure to save the changes.
You should be presented with a green 'Save done' text afterwards.
watch.sil (download file)
- 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.
You should see the following confirmation afterwards. - Make sure to save the changes.
You should be presented with a green 'Save done' text afterwards.
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.
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'.
Click 'Add' to finish the process.
You should end up with your LiveFields configuration looking like this.