Skip to end of banner
Go to start of banner

lfInstantHook

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Description

Executes the given SIL script passing the screen values for the specified dependent fields (relatedFields) as parameters to the script.

Parameters

Return Type

None

Example

For the scriptPath parameter you can either give the relative path or the absolute path:
C:/Program Files/Atlassian/Application Data/JIRA/silprograms/hook.sil.

lfInstantHook({"summary", "customfield_13706", "components"}, " hook.sil");

Every time when the initial script is triggered, the hook.sil is executed. When the summary field contains the word "important", the Priority field is set to "Highest" and a message will be displayed for the Priority field.

// hook.sil
if (contains(argv["summary"], "important")) {
    lfSet("priority", "Highest");
    lfShowFieldMessage("priority", "Priority changed", "INFO");
}

See also

  • No labels