This feature is available starting with the following app versions:
- Power Scripts™ for Jira 2.5.3
- SIL Engine™ 2.5.5
Starting with version 2.5.3 of Power Scripts™ for Jira, the screen argument was passed to the Live Fields scripts, so you can easily filter your actions based on which issue screen you are operating.
Returns the actual screen on which the current Live Fields SIL™ script is executed, this applies to both the initial script and any hooked script.
A string from the following list of predefined values, corresponding to the actual issue screen:
Support for the Create Sub-Task screen is available starting with Power Scripts™ for Jira 2.5.5 and SIL Engine™ 2.5.8 and above.
You can easily determine a particular transition's id, by checking your workflow administration page. They are listed as: Transition (id).
The following image shows Jira's transitions and their correspondent ids:
This can be useful when you want to apply certain Live Fields actions only on editable screens for example, and not on view issue page.
For example, you want the assignee to always be set to user "x" when creating a new issue and with a Defect custom field having the "Development" value, without letting the user modify it.
At the same time, you want to set the current user as assignee by default whenever the ticket reaches the Resolve Issue transition screen but keep it editable.
You can achieve this by checking the screen argument and applying the live fields actions on the assignee field based on the argument value in the initial and in the hook script: