Description
Make sure that a transition screen has been attached to the current transition.
Parameters
Return Type
String
The value of the field in the transition screen.
Examples
Example 1 - checking whether a certain custom field has a given value
return getInput("customfield_12003") == "abc";
Checks if the value set in the transition screen for customfield_12003 is "abc".
Example 2 - getting the comment a ticket has on a transition screen
getInput("comment");
Returns the value the Comment field has set.
Custom fields must be referenced by id (customfield_id), while standard fields can be specified by one of the following keywords: summary, timetracking, security, attachment, reporter, environment, description, duedate. You can also check the Comment field, using the keyword comment.
See also