Unclear error when creating a task via automation
Asked by Nofar Ben Kereth:

Hey,

I set up a rule that created a task in a Personal project (my, i'm the admin there). But it shows a weird error I can't understand.

![Screen Shot 2022-10-11 at 12.08.27.png](https://community.atlassian.com/t5/image/serverpage/image-id/220037i70016E2F71A95B2D/image-size/large?v=v2&px=999 "Screen Shot 2022-10-11 at 12.08.27.png")![Screen Shot 2022-10-11 at 12.08.36.png](https://community.atlassian.com/t5/image/serverpage/image-id/220038i8362AE53589D5B4D/image-size/large?v=v2&px=999 "Screen Shot 2022-10-11 at 12.08.36.png")


Answers:
author: Nofar Ben Kereth
body: Found the solution - when I specified the issue type instead of choosing "Same as" it worked


author: Nofar Ben Kereth
body: It seems the problem is in the source project as the IDs in the error belongs to it. Any suggestions?


author: Dan Tombs
body: Hi [@Nofar Ben Kereth](/t5/user/viewprofilepage/user-id/3709861)

Does the automation actor have access to the project? If it is using the standard automation user, then make sure the apps role has access to the project in the permission scheme.

Dan

comments: author: Nofar Ben Kereth
body: The actor is Automation for Jira - how can give it permission? Doesn't it already have it by defualt?


author: Dan Tombs
body: [@Nofar Ben Kereth](/t5/user/viewprofilepage/user-id/3709861)

Can you send a screenshot of the permission scheme. Specifically browse project and create issue permissions.

Dan


author: Nofar Ben Kereth
body: Since its a Personal Tasks project, it doesn't have a scheme. Adding the Access settings ![Screen Shot 2022-10-11 at 12.24.59.png](https://community.atlassian.com/t5/image/serverpage/image-id/220046i1921E288FE42C7AF/image-size/large?v=v2&px=999 "Screen Shot 2022-10-11 at 12.24.59.png")


author: Dan Tombs
body: [@Nofar Ben Kereth](/t5/user/viewprofilepage/user-id/3709861)

Switch the automation actor to you to see if this resolves the issue.

Dan


author: Nofar Ben Kereth
body: Just switched to myself and same error shows..


author: Rilwan Ahmed
body: Hi [@Nofar Ben Kereth](/t5/user/viewprofilepage/user-id/3709861) ,

Please check if you have same ticket type in NOFI project as similar to that you created in Your personal project.

i.e.

* If you create **BUG** ticket in your personal project, then NOFI project should also have **BUG** ticket type
* If you create **TASK** ticket in your personal project, then NOFI project should also have **TASK** ticket type

comments: author: Nofar Ben Kereth
body: Thanks.

Yes, both have Task and this is what I was trying to create.


author: Rilwan Ahmed
body: [@Nofar Ben Kereth](/t5/user/viewprofilepage/user-id/3709861) ,

1. Please check if there is any mandatory/required fields in destination project that are not being filled from automation.
2. Check if the automation rule actor has **create ticket permission** on the destination project.
3. Check if there are any other conditions/Validators in destination project ticket type workflow.


author: Nofar Ben Kereth
body: 1. No mandatory/required fields

2. The rule actor is Automation for Jira, as far as I know, you don't need to give it special permissions.

3. Nothing..

The only thing I can think of is that the destination project is a Personal Task type..


author: Rilwan Ahmed
body: [@Nofar Ben Kereth](/t5/user/viewprofilepage/user-id/3709861)   
You need to add "Automation for Jira" user to create ticket permissions explicitly in your project. You can go to permission checker and see if user really has the permission or not