Hello!
We have this issue:
We would like to add a feature to our users, to clone an issue and move it to another project, with a "modify screen" with some fields to edit, and automatic edit of another fields.
Now, they have to:
1. clone the issue
2. delete the value of some fields
3. move it to another project
4. edit the issue to change some fields
Our idea would be:
1. to create a new button in "more" menu called "send to another project"
2. to automatically clone, empty some fields and move it to another project
3. to automatically open the "edit screen" with some mandatory fields
How we think we could do:
1. Create the new button with ScriptRunner ScriptFragment following this documentation:
https://scriptrunner.adaptavist.com/5.4.49/jira/fragments/BoardContextMenuItem.html
And then we have two ideas:
1. Create a "Constrained Create Issue Dialog" with the new project, and create a Behaviour to populate the create issue form with all values from the current ticket.
Pros: we can create in one step the new ticket and choose all fields pre-propulate
Cons: there are a lot of complex fields (with xray...), it's hard to populate all fields one by one
2. Create a "Custom Web Item", with a script to clone and move the ticket...
Pros: we can easily create a clone of current ticket, so no problem about the complex xray fields
Cons: We don't know how to load a screen to make the user choose some custom values for the new ticket...
For both of these ideas, we are blocked, we don't know how to do... The first one is very long to configure, because of the form behaviour on each field. The second one is not good for our UX, because we don't know how to force to edit the ticket after the clone&move.
Do you have some ideas to help us to configure this new feature?
Thank you very much!