Move ticket to target project
User story: I am a project manager. I want to move a ticket from one project to another, so that it is filed correctly.
Suggested solution:
$ bosun move foo/bar#42 alpha/beta
Created ticket https://source.example.com/alpha/beta#13
Suggested logic:
Given that a ticket exists in the old project
When it is moved
Then create a new ticket in the target project
And copy the old ticket description
And add a comment "Moved from old/path#42"
And in the old ticket add a comment "Moved to new/path#13"
And close the old ticket
And return the URL of the new ticket
Edge cases:
- If required, first prompt the user to log in with their email address and passphrase. You can do this every time, we can worry about storing credentials later.
- If the old project, old ticket or target project can't be found or the user doesn't have permission to access/change them, stop and return an error.
- If the new ticket can't be created, stop and return an error.