Clone, and move to another project changing some fields

Olivier Billaud April 29, 2019

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!

2 answers

0 votes
Keith Kennedy October 23, 2019

@Olivier Billaud 

Would it be possible for you to share exactly what you did?  We are interested in doing something similar, without having to purchase another add-on app.

Thanks...KEITH

Olivier Billaud October 24, 2019

Hello Keith, 

 

We created a new transition for all statuses to a new status "cloned".

This transition has a screen with all fields we potentially want to change during this cloning (they are hidden fields in all screens for this issue type, just "technical fields").

Then, we have a post function "Create a new issue". You need the "JMWE add-on" for this. There is no way to do that without that module, but that module is just necessary for all complex JIRAs...

Once this issue is cloned, we use the post-function called "Follow Up Transition" from the JSU app, so we can come back to the previous status.

 

I realize than we need two modules you maybe don't have... JMWE and JSU... Tell me if you have them and if you need more details to do so.

 

Olivier

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 24, 2019

You actually don’t need JSU for that. You can create an “auto-transition” instead of a regular transition, so that the status doesn’t change. Or you can use JMWE’s Transition Issue post function instead of JSU’s follow up transition. 

Like Olivier Billaud likes this
0 votes
Antoine Berry
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 30, 2019

Hi @Olivier Billaud ,

Check Clone Plus plug-in, it provides different custom clone options. You can update custom fields, issue types and project.

Antoine

Olivier Billaud May 6, 2019

Hello @Antoine Berry , 

Sorry, I didn't answer before.

We try to find a way to do that without paying a new plug-in... It begins to be very expensive. :) 

We found a quick&dirty solution: doing a transition with the ticket we want to clone, changing some values in its fields, cloning this issue with a post-function, and reverting all the previous values of the current ticket.

So we can do everything with a transition...

For now, it's ok for us... 

But thanks for this module :) 

Antoine Berry
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 9, 2019

Indeed it looks like a good workaround ! 

Like Olivier Billaud likes this

Suggest an answer

Log in or Sign up to answer