Versions Compared

Key

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

This routine is available starting with 

  1. Power Scripts 2.5.6 (for Jira 5.XPower Scripts x) and 2.56.6 (server1 (for Jira 6.x)
  2. SIL Engine™ (former katl-commons ) 2.5.8 (for Jira 6.XPower Scripts™ 5.x) and 2.6.1 (server)SIL Engine™ (former katl-commons) 2.for Jira 6.1x)

Syntax

lfInstantHook(relatedFields, scriptPath);

...

This is especially useful in the create issue screen, where you don't have access to the issue standard variables. Using an instant hook, you can access the screen values for the desired fields as argv["field"in the hook script.

Parameters

ParameterTypeRequiredDescription
relatedFields

String Array

YesDependent fields required for a the given field (needed only if you get the field's values from the screen like this: argv["field"])
scriptPathStringYesScript source to run when the event is triggered

...