Versions Compared

Key

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

...

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

Every time when the keyup event is triggered, the hook.sil is executed. When the summary field contains the word “important”, priority field is set to Critical Highest and a message will be displayed for the priority field.

Image RemovedImage Added

The first image shows the initial value of the priority for the current issue, the next one shows the value it is changed to, after executing the code from hook.sil.

Image RemovedImage Added 

As we said before, the values from the relatedFields are accessed as argv[field]. For multiple values fields like components or affectedVersions the value returned is in the following format: val1|val2|val3.

...

Info
titleInfo

For more information, see How ' Live Fields ' work.

See Also:

Filter by label (Content by label)
max35
cqllabel = "live_fields_routines"