There are no built-in script functions for priority changes in JIRA. Do you mean one of the scripting add-ons? (If so, which one? Also, versions would be handy and a note of which docs are you following?)
It looks like you're new here. Sign in or register to get started.