Data Center vs Cloud script examples
Basic examples
Setting field values
//SIL (Data Center)
lfSet("summary", "Value to set");
//JavaScript (Cloud)
getFieldById("summary").setValue("Value to set");
Hiding fields
//SIL (Data Center)
lfHide("customfield_56789");
//JavaScript (Cloud)
getFieldById("customfield_56789").setVisible(false);
Working with screen values
Getting field value basic example
SIL (Data Center)
//main script
lfInstantHook({"issueType"}, "LiveFields/examples/hook.sil");
JavaScript (Cloud)
Note: The “On load” trigger would need to be set for this script:
Watching a field value
SIL (Data Center)
JavaScript (Cloud)
Note: The “On change” trigger will need to be set for this script:
Feature comparison
You are viewing the documentation for Jira Cloud.