Is there some convenient mechanism in JIRA for creating cancel links for custom actions, based on what page the user entered the action from? Or do I have to provide this myself in request parameter and set the cancel link manually?
You will have to set it manually.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.