Automation Rule Error: Please select a valid project.
Asked by Kevin Paulus:

Automation for Jira version 7.2.8:  

I am creating a rule to create 6 sub-task issue types when a Story issue-type is created.   
I start with the Issue created trigger. The condition is If Issue Type equals Story.  

Then a Create issue component is added. Its Project is set to Same Project, Issue type is Sub-task, and the Parent issue is the Trigger issue.  

I then set the Summary and Labels field values. I have selected to set the Assignee and Priority fields to Copy from Trigger issue.  

I repeat this for all 6 sub-tasks. I hit the Publish rule button and then enter the name of the rule and click the Turn it on button.  

That's when I get the error Please select a valid project.  

I get the same result if I change the Project selection to Same project as trigger or select the project from the list of projects.  

It all seems correct \& relatively simple.  
Any ideas on what is wrong \& where are most appreciated.  

<br />


Answers:
author: Bill Sheboy
body: Hi [@Kevin Paulus](/t5/user/viewprofilepage/user-id/1143872)

Just to confirm some things for context:

* You are using Jira Cloud, correct?
* You are trying to create this a global rule, as a site admin, and then selecting one project?

If the answer to both of those is "yes", have you tried to create the same rule for a specific project, from one project's settings?

Best regards,

Bill

comments: author: Kevin Paulus
body: Hello Bill,  
No, I am in Jira Server 8.1.0 and this needs to be a project-specific rule. This particular rule could only make sense in the one project.   

I start in the project \> Project settings \> Project Automation \> Create rule.


author: Bill Sheboy
body: Thanks, Kevin! Would you please post an image of your entire rule for some context? Thanks!

And, would you please try to create another, very simple rule, and execute it? That may rule-out other issues with your add-on. Maybe something like:

* Trigger: manual
* Action: log the issue key {{issue.key}}


author: Kevin Paulus
body: I did successfully create \& execute a Log Issue rule:

but it was in a different project (one where I am the owner \& actor.  

Can I create automation rules in projects that I am not a member of? We have over 300 projects and as a Jira instance admin, I do not want to have to wade through the minutia \& nonsense of every project. I suppose I could just have the project leads do their own automations, but what damage could they do to one another?


author: Bill Sheboy
body: I believe you need to be at least a project admin to create/maintain rules for a specific project. As site admin, you could build and test a rule in one project, and then move/copy/re-assign it to the target project. That is the process I use with our site admin when I am testing complex new rules in a test project when I do not want to impact the production team's project.

If you are making global rules to span all/multiple projects, you should be able to save a rule if you have necessary access.

Regarding cross-project issues, the project admins can administer rules only for what they can access. So they cannot easily break other projects. The exception...if they understand enough to do webrequests and call the REST API, they can certainly solve more issues and get into more mischief with other projects. ;\^)


author: Kevin Paulus
body: Thank you Bill:  

I came to that conclusion as I was returning to the project where the error occurred. I have asked the project lead to attempt creating the rule he requested. Hopefully he won't be as slow on the uptake as I was and not require a Zoom meeting for me to walk him through the process. Actually, it is easy enough to do \& I did see that the separation of rules between projects exists so the 300+ project admins can't cross-diddle each others' rules. Thank you again!


author: vikram monga
body: can someone provide user manual?


author: vikram monga
body: please let me know how to start the project?


Tags: server