Versions Compared

Key

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

...

Info
titleRequired apps

Power Scripts Scripts™ for Jira (server)

Level: INTERMEDIATE

...

This behavior can be achieved on any transition screen by using a SIL SIL™ Validator on that particular transition, as described here: Force a custom field to be required if another field was set to a certain value.

However, to achieve this behavior also on the edit issue screen, we have to make use of the Live Fields feature of Power Scripts Scripts™ for Jira:

Configure the Initial Script for Live Fields

First you have to create the following script and associate it with the main Live Fields configuration on your project, as described here.

Code Block
titleinitial_script.sil
lfWatch("customfield_10100", {"customfield_11100", "customfield_10100"}, "hook.sil");
lfWatch("customfield_11100", {"customfield_11100", "customfield_10100"}, "hook.sil", {"keyup"});

...

That's it. You can make any Jira field required in any screen based on other fields values using Power Scripts Scripts™ for Jira's Live Fields capabilities.

...