Moved all data from one project to another and now automation is not working
Asked by eric caprio:

I moved all data from one project to another because I was moving the project from a team based to company based. The new company based has built in automation around having a story create sub task code review and sub task QA as the story moves along.

I am not getting this error below... would my solution be to export all the stories, delete them and re-import?

Error creating issue  
Issues with this Issue Type must be created in the same project as the parent. (project)


Answers:
author: Trudy Claspill
body: Hello [@eric caprio](/t5/user/viewprofilepage/user-id/5547489)

Welcome to the Atlassian community.

It is great that you provided us with the message from the Audit Log.

In order to decipher why this message is occurring we need you to also:

1. Provide the entire audit log entry.

2. Provide screen images showing us the entire rule

3. Provide screen images showing us the details of each step in the rule.

Without that information we have no way to conclusively debug the issue.

Based on the message and the fact you said the rule is creating subtasks, that suggests that the subtask creation is trying to be executed in a project other than the one where its parent issue exists.

comments: author: eric caprio
body: Hi there, please see attached for more information. I am guessing this might have to do with only being applied to two projects, in which the one these stories started in are not one of those two projects (created in a Darwin Analytics project team based project - which had all the data moved to Analytics project company based project.

![Screenshot 2024-07-19 at 10.44.59?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/336725i869DC665948F5BE0/image-size/large?v=v2&px=999 "Screenshot 2024-07-19 at 10.44.59?AM.png")![Screenshot 2024-07-19 at 10.44.40?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/336726iB0DF9F6A3EA06CCE/image-size/large?v=v2&px=999 "Screenshot 2024-07-19 at 10.44.40?AM.png")


author: Trudy Claspill
body: Based on the image you provided the issue that triggered the rule is AND-43. That is an issue in your project named Analytics.

In the step where you are trying to create the subtask you have specified that the subtask should be created in the project Innovations.

That is not allowed. Subtasks must be created in the same project as their parent task. That is the reason for the Error in the log.

You need to change the subtask creation step to create the issue in the Same Project as Trigger.

![Screenshot 2024-07-19 at 8.39.02?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/336741iB9B22CDE28632C02/image-size/large?v=v2&px=999 "Screenshot 2024-07-19 at 8.39.02?AM.png")

Or you need to eliminate the Analytics project from the rule Scope.


author: eric caprio
body: thank you! I did not know that was within the action. All fixed.


author: Trudy Claspill
body: I'm glad I could help.

If my response helped you solve your question please consider clicking the Accept Answer button to mark your post as Solved.


author: Pedro Lucena
body: Hello how are you?  
I'll leave a checklist for you to do

Check filters  
Check whether items are present in the permission scheme  
Have you tried implementing global automation?


Tags: cloud

jira-cloud