It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Clone, and move to another project changing some fields

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
Antoine Berry Community Leader Apr 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

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 May 09, 2019

Indeed it looks like a good workaround ! 

Like Olivier Billaud likes this

@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

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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

365 views 1 3
Join discussion

Community Events

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

Events near you