Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to set up PROJECT based on ISSUETYPE when creating an issue?

Can I automatically set PROJECT based on ISSUETYPE?

I started using automation recently. I have created a simple rule that will automatically set SUMMARY when creating a ticket based on ISSUETYPE:
- When: Issue created
- If: matches (Issuetype = X)
- Then: Edit issue fields (Summary = Xyz)
The above rule works fine.

I would like to set up PROJECT in the same way. I need one specific type of task to always be directed to one specific project (preferably when creating a task).

2021-09-25 11_12_25-Project automation - JiraEdit.png

Unfortunately, the PROJECT field is not available for editing (I cannot create a rule analogous to the one described above for SUMMARY).
If anyone has an idea how to do it, please give me some hints. Thanks.

2 answers

1 accepted

4 votes
Answer accepted

Project is not a field, it's an entire container for an issue.  You can not edit it, you have to physically move an issue from one project to another.

The issue types available to a project are configured at the project level, so there's no way to choose an issue type before you know the project, as the project determines which ones are available.

You can however do  "creating "Shopping" issue (no matter what project the user sets), I want to ensure that it goes to the SupplyProject".

Set up SupplyProject to allow the use of the "Shopping" issue type.  Do not allow it to be used in any other project.  The users won't be able to choose other projects after selecting the Shopping type (well, they will, but they will have to use a different issue type) 

I guess I'll have to do that. Thanks for the tip.

2 votes
Ravi Sagar Community Leader Sep 25, 2021

Hi @do_mi_no 

Well Edit issue operation is different from Create issue operation. When you edit an issue, it is already part of a project. This would be a move operation.

So in your rule when you create an issue, you will find a project field.

Is this what you want to achieve with your rule? Move an issue to another project?

Ravi

Hi @Ravi Sagar  

To be more precise, I am trying to create an automation rule analogous to the SUMMARY field (described above). That is:

  1. When: Issue created.
  2. If: matches (Issuetype = Shopping)
  3. Then: Edit issue fields (Project = SupplyProject)

I do not want to change previously created issues.

During the process of creating "Shopping" issue (no matter what project the user sets), I want to ensure that it goes to the SupplyProject.

"Edit operation" in this case is the action performed in the third step of the automation rule.

Curt Holley Community Leader Sep 26, 2021

Like @Nic Brough _Adaptavist_ says...Project is not a field. and although you could create automation to move them all into the one project...why? When (as @Nic Brough _Adaptavist_ suggests) you can (and should) restrict that issue type to only that project. Thus routing people to it if they want to use it.

Users complain about "too many fields to fill", so I wanted to minimize the amount of interactions necessary when creating an issue.
After selecting issue type, I wanted the project to be selected automatically (specifically thist type of an issue should only be in this project).
@Nic Brough _Adaptavist_ 's advice should fix the problem.

@Ravi Sagar , @Curt Holley - thanks for your advice.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Work Management

Lessons from Vilius Zigmantas’ path to Continuous Process Improvement at GeoComply

  “Organizations are made of people who create and follow processes which are constantly changing and are in need to be supported and nurtured… this is the spot where I realized I can br...

702 views 7 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you