Global Automation: The issue type selected is invalid
Asked by Cl?udia Silva:

Hi,

I am creating a "Global automation" in which my trigger is triggered when there is a change to the issue's status, this status must be equal to "Approved" and these issues must belong to project X, Y and Z. In each issue must still be present issue links of type "Blocks". Then, for each issue, it must belong to the "TCM" project and the issueType = "Request", then the status of each issue will change from "Request" to "Implement". The entire process works correctly, until the change of issueType where the error "**The issue type selected is invalid. (issuetype)** " appears.  
Below is a screenshot of the automation.

Notes: We added the issueType "Implement" to the default issues Type, we also tested adding it to the issueType of the "TCM" project itself, but without success.

Can you help me in this regard?

Thanks!!![Screenshot.png](/t5/image/serverpage/image-id/323341iF25E593A5C71183A/image-size/large?v=v2&px=999 "Screenshot.png")


Answers:
author: Jerrold - Empyra
body: Hi [@Cl?udia Silva](/t5/user/viewprofilepage/user-id/5056478)

Could you please verify if both issue types have identical workflows. Because that may be one of the reasons its not changing

Thank you.

comments: author: Cl?udia Silva
body: I'm not sure how I can tell if it has the same workflow, I don't know if you could help me in that regard? What was done was to add the "Implement" as a "Default Issue Type Scheme" where in the projects column it is associated with Global (all unconfigured projects). However, if I try to create an issue in the "TCM" project, only the issuesType that I created in the project itself and it doesn't let me select, for example, "Task" or "Improvement" because it's a different project, but I would like it to be possible to still interact with the default issueType.

Thank you.


author: Jerrold - Empyra
body: Can you share the screen shot of the issue type scheme in the TCM project

Project settings \> issues \> Types


author: Cl?udia Silva
body: Yes of course. These are the issue types that were created for this project and one of them is "Implement". Even so, we also created an "Implement" in the default issue Types but neither one nor the other identifies it.

![Screen shot - issueType.png](https://community.atlassian.com/t5/image/serverpage/image-id/323352iA2D782BF7427D89C/image-size/large?v=v2&px=999 "Screen shot - issueType.png")


author: Jerrold - Empyra
body: Hi [@Cl?udia Silva](/t5/user/viewprofilepage/user-id/5056478)

I tired to recreate the issue and I also got the same error at first then I decided to check with another issue type which worked and then again I tired the issue type which gave me the error and this time it didn't show me the other it changed

![test -1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/323360i29E2F10B6A4B8DD9/image-size/large?v=v2&px=999 "test -1.PNG")![test -2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/323361i3AC0D60168360F87/image-size/large?v=v2&px=999 "test -2.PNG")

For testing can you try whether the automation is working with another issue type. try to change the last action issue type to another issue type instead of "Implement"


author: Cl?udia Silva
body: I tested changing the issue type to "Task", which is also a default, and then I tested it to "Request" and neither of them worked, it still gives the same error "The issue type selected is invalid. (issuetype)".  
A curiosity is that in the previous step it is a JQL condition in which I say that the issues found must be of the "Request" type and then it has no problem identifying the issue, but then in the then it no longer accepts because these issue types They are the default ones and it seems to me that it does not identify that this issue type also has to belong to the TCM project.


author: Jerrold - Empyra
body: Hi [@Cl?udia Silva](/t5/user/viewprofilepage/user-id/5056478)

As we see the issue types in the TCM project you don't have a issue type "task" In the TCM project you have only "Requirement" "functional Area" "implement" "request" "test case" and "step" you have only these issue types

can you check whether in the action dropdown you getting two issues types named implement


author: Cl?udia Silva
body: ![Dropdown1.png](https://community.atlassian.com/t5/image/serverpage/image-id/323363i08A6EA6D9F594F78/image-size/large?v=v2&px=999 "Dropdown1.png")![Dropdown2.png](https://community.atlassian.com/t5/image/serverpage/image-id/323364i613D2AC70C3D3970/image-size/large?v=v2&px=999 "Dropdown2.png")

![Default Issue Type Scheme.png](https://community.atlassian.com/t5/image/serverpage/image-id/323366iA83C3628740F7C20/image-size/large?v=v2&px=999 "Default Issue Type Scheme.png")

In the dropdown you have all the options that exist in the "Default Issue Type Scheme". And no, there isn't the issue Type "Implement" twice...


author: Jerrold - Empyra
body: Is TCM is one of the project you selected in the first condition (these issues must belong to project X, Y and Z.)


author: Jerrold - Empyra
body: and can you also check the rule details scope what all projects its showing


author: Cl?udia Silva
body: No.. In the first condition there are 3 other projects, only after searching for the linked issues do these have to belong to the "TCM" project.


author: Cl?udia Silva
body: ![Rule Details.png](https://community.atlassian.com/t5/image/serverpage/image-id/323368i9F707F2BEAA9675C/image-size/large?v=v2&px=999 "Rule Details.png")![Scope.png](https://community.atlassian.com/t5/image/serverpage/image-id/323369i90C0270D2971E7B7/image-size/large?v=v2&px=999 "Scope.png")

In rule details I have Global but in the audit logs when it gives the answer, it changes to Multiple Projects.. I don't know if it's the normal process..


author: Jerrold - Empyra
body: This may help change the scope in the rule details to only TCM project update it and then go to the last action and now in the drop down you should only see these issue types

"Requirement" "functional Area" "implement" "request" "test case" and "step"

In this you select the Implement and update the automation and then again go to the rule details and change the scope to global then run the automation


author: Cl?udia Silva
body: It worked [@Jerrold - Empyra](/t5/user/viewprofilepage/user-id/5352480) ! Out of curiosity, is there any logic to this? Thank you very much for your help and quick response.


author: Jerrold - Empyra
body: No problem, So the issue type you selected at the first was not the same issue type that is associated to the team managed project that is the problem I don't know exactly why its not showing when we put the scope at global it should consider both team and company managed. Anyways happy that worked. Please consider accepting the answer if it was helpful

Thank you.

Have a nice day.


author: Klaudia Sch?n_Deviniti_
body: Hi [@Cl?udia Silva](/t5/user/viewprofilepage/user-id/5056478)

In the first step, I would recommend you to verify whether you are able to create the issue with the mentioned issue type in a manual way. Are you able to manually select this specific type on the create screen? Or maybe is it a sub-task type?

Kind regards,  
Klaudia

comments: author: Cl?udia Silva
body: I think the problem could be here, because in the "TCM" project, if I create an issue, I can't add the issueType "Implement" to that same issue. I can only add it if I actually created an issueType "Implement" within this project. The question here is to understand how I can interact with projects even though they have different workflows... I believed that by adding the issueType to the JIRA settings as a default issueType that it would be enough to identify it in the "TCM" project...

Thank you!


author: Klaudia Sch?n_Deviniti_
body: [@Cl?udia Silva](/t5/user/viewprofilepage/user-id/5056478) In case you use another project scheme for this project, you need to localize the proper one in the global settings and then, add the specific issue type to this scheme. A separate workflow shouldn't be a problem here as your wish is to create the issue :)


author: Cl?udia Silva
body: The question is that the other projects are "company-based" and TCM is a "team-based" project, does that make a difference? It's just that if I go to Issue -\> Issue type screen schemes I don't have any associated with the TCM project..


author: Klaudia Sch?n_Deviniti_
body: Ok, so if I understand correctly, you'd like to create a link between Company-managed and Team-managed projects via Automation, am I right?


author: Cl?udia Silva
body: Yes that's right. I would like that when those conditions that I left in the screen shot happen in projects X,Y,Z that are "Company-managed" then go to the "TCM" project that is "team-based" and change its issueType..


author: Cl?udia Silva
body: Jerrold was able to solve my problem, but thank you very much for your help and quick response [@Klaudia Sch?n_Deviniti_](/t5/user/viewprofilepage/user-id/1229950) .


Tags: cloud

jira-service-management-cloud