Automation Failing: Cloning an issue to another board upon Assignment
Asked by Marta:

Hi there,

let's see if anyone can help :)

I already read [this thread](https://community.atlassian.com/t5/Jira-questions/Automation-Rule-Cloning-an-issue-to-another-board-upon/qaq-p/2611290) and didn't help.

I'm trying to have a **new issue created in another project upon assignment**.

* -Both projects are team-managed Business projects
* -The other project is owned by the assignee

**I already tried changing the target Issue Type** (ideally "same as trigger issue" but also chose "task") without success.

Any ideas?

Thanks!


Answers:
author: John Funk
body: Hi Marta,

Team-managed projects are totally independent of each other. So when you say same as trigger issue, it doesn't really know what that means in this case.

So, you need to actually select a value for the Issue Type. If that doesn't work for some reason, then try to do a Create new issue action instead of Clone issue.

comments: author: Marta
body: Thank you so much, John! Sorry I forgot to attach the screenshots!

![Screen Shot 2024-05-08 at 17.51.41.png](https://community.atlassian.com/t5/image/serverpage/image-id/322695i2F0EF2B778DCF331/image-size/large?v=v2&px=999 "Screen Shot 2024-05-08 at 17.51.41.png")![Screen Shot 2024-05-08 at 17.58.43.png](https://community.atlassian.com/t5/image/serverpage/image-id/322696iC8688E5F37BB48A0/image-size/large?v=v2&px=999 "Screen Shot 2024-05-08 at 17.58.43.png")  

I got this type of error both before and after changing to a specific Issue


author: John Funk
body: Can you share the details of the Clone issue into: step?


author: Marta
body: I've had these two options, as mentioned:

1) (I understand now why this would fail)

![Screen Shot 2024-05-08 at 18.24.27.png](https://community.atlassian.com/t5/image/serverpage/image-id/322697i82C4FA5DB9F0C458/image-size/large?v=v2&px=999 "Screen Shot 2024-05-08 at 18.24.27.png")  

2) I don't understand why this would fail

![Screen Shot 2024-05-08 at 18.25.15.png](https://community.atlassian.com/t5/image/serverpage/image-id/322698iDE4316CB6952209D/image-size/large?v=v2&px=999 "Screen Shot 2024-05-08 at 18.25.15.png")


author: Marta
body: Hi [@John Funk](/t5/user/viewprofilepage/user-id/7148),

Is that what you meant?

Thanks! :)


author: John Funk
body: Yes. Did that work?


author: Marta
body: Hi there!

Nope, did you read my message with screenshots? :) Sorry if it wasn't clear.

Your suggestion (option 2) didn't work either.

Thanks!


author: John Funk
body: Sorry for the misunderstanding. Try to do a Create Issue instead of a Clone. And then select all of the fields you want to copy over.


author: Marta
body: Hi John,

Creating was never a problem, but I wanted the status to be transferred over to the first (source) board if changed on the second (target) board.

I've just tested the exact same parameters with Create and with Clone (disabling one or the other) and I don't see any differences. Both create a new issues in the target board, but the status never gets transferred.

![Screen Shot 2024-06-03 at 14.15.52.png](https://community.atlassian.com/t5/image/serverpage/image-id/327532i11C7647857BD4709/image-dimensions/448x415?v=v2 "Screen Shot 2024-06-03 at 14.15.52.png")

![Screen Shot 2024-06-03 at 14.13.35.png](https://community.atlassian.com/t5/image/serverpage/image-id/327528iC4C20523A01A041F/image-dimensions/309x381?v=v2 "Screen Shot 2024-06-03 at 14.13.35.png")

![Screen Shot 2024-06-03 at 14.12.50.png](https://community.atlassian.com/t5/image/serverpage/image-id/327529iE5D93FBA1CB98C0E/image-dimensions/314x383?v=v2 "Screen Shot 2024-06-03 at 14.12.50.png")

Another question: in this case, for the assignee of the target issue, would it be the same to use "Copy from issue" than "Copy from trigger issue"?

Cheers :)


author: John Funk
body: It would be trigger issue if you want it to be the same as the one that originally got assigned and caused the rule to fire.


author: Marta
body: Thanks!  

OK so now I'm good with Clone and Create, as long as I choose an Issue type from the target board it's fine (rather than "same as the trigger issue").

I've tried adding to the automation that **if the trigger issue has children** , these **children are to be cloned too**. It's not happening. My guess is it's because of the "if assigned to: ", when they're not assigned.

Dunno how to state "regardless of whether they're assigned or not already" inside the branch. I've tried these two and slight variations:

![Screen Shot 2024-06-03 at 17.21.34.png](https://community.atlassian.com/t5/image/serverpage/image-id/327604iBAADC7A567289DA9/image-size/large?v=v2&px=999 "Screen Shot 2024-06-03 at 17.21.34.png")

![Screen Shot 2024-06-03 at 17.36.58.png](https://community.atlassian.com/t5/image/serverpage/image-id/327607i0D6DFD3006082785/image-size/large?v=v2&px=999 "Screen Shot 2024-06-03 at 17.36.58.png")

Any help will be much appreciated!

PS: Error Log!!

![Screen Shot 2024-06-03 at 17.39.30.png](https://community.atlassian.com/t5/image/serverpage/image-id/327608iEADDA875CE90C150/image-dimensions/440x406?v=v2 "Screen Shot 2024-06-03 at 17.39.30.png")

Is it because I used "sub-task" in the target children issue? (I think I have to because they have to be children of "task")


author: John Funk
body: What are you using for the parent field population in the last clone action? Can you share details?


author: Marta
body: Hi John!

<br />

Sorry for the delay. **It is cloning the Epic** into the target board (as Task; it's my choice) but not the children.

Details of Parent, you asked:

![Screen Shot 2024-06-06 at 11.25.46.png](https://community.atlassian.com/t5/image/serverpage/image-id/328316i9A759DF6EAC01FBA/image-dimensions/381x376?v=v2 "Screen Shot 2024-06-06 at 11.25.46.png")

![Screen Shot 2024-06-06 at 11.26.18.png](https://community.atlassian.com/t5/image/serverpage/image-id/328315iA2F46DA645038DA5/image-size/large?v=v2&px=999 "Screen Shot 2024-06-06 at 11.26.18.png")


author: John Funk
body: Is the trigger issue - the one that was just assigned, to be the parent of the sub-task you are creating? And are they in the same project? If not, you can't do that.


author: Marta
body: Thanks!

**Trigger issue** is in source Project A.

**Clone** is in target Project B.

So for the Branch, I've now removed all "trigger" mentions. Still doesn't work.

![Screen Shot 2024-06-06 at 11.52.33.png](https://community.atlassian.com/t5/image/serverpage/image-id/328319i811E16D33741F789/image-size/large?v=v2&px=999 "Screen Shot 2024-06-06 at 11.52.33.png")


author: John Funk
body: Nope, you can't have a sub-task in one project be the child of a parent in a separate project. They must be in the same project.


author: Marta
body: no no, all the clones are in the same project :)

I thought my changes made that explicit ?


author: John Funk
body: Sorry, missed the part about changing the trigger for the parent. So what doesn't work with the latest rule? Also, you can't use {{issue.duedate}} for the Due date because that is the same issue. If that should be the same as the one you are cloning from, you don't need to add that field. If it is set from something else, what is it?


author: Marta
body: Hi!  
About the due date, I just didn't want it to be empty in the children issues. If the children issues don't have one, it's OK to inherit it from the parent issue (whether it's the original or this one, should be the same)


author: John Funk
body: You should probably deal with the Due Date in a separate step then. Leave it out of the Clone process. Then add a Condition where the Due Date is empty. Then add an action for Edit Issue and just use the due date field. Then copy it from the parent.


Tags: cloud

jira-service-management

jira-service-management-cloud