You need to configure the workflow to have the "Resolution" field set.
Either you can do this on a transition screen to canceled, or set it to a default one via a post function.
Look especially at the "Setting the resolution field" section
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events