Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use conditions in Automation for automatics tasks ?

fictis September 8, 2021

Hello the community

 

After our server, where Jira was installed, has burned, we migrate since old backup to Jira Cloud. Unfortunately, we have to recreate manually old configurations for some things like Automation from scratch.

So I'm working on Automation but I'm blocked.

After the creation of a new project, I would like to create different automatic tasks there depends of project category.

I don't found smartvalue like project.category for that. So I use project.name and verify if it contains part of specific words as we use glossary that depends type of project.
My condition is "{{project.key}} contains FPDVD" but it doesn't work. 

And When i'm trying to create issue ticket (that doesn't depends of project category), I have this error message :  "Could not find create meta data for project/typeId"

I tried the several issue type as task but any has worked.

 

So I ask your help and try to unblock my situation.

Thanks by advance.

2 answers

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
September 8, 2021

Hi @fictis how do you set Project Category during project creation process? I always set the project category in Project Settings after the project is already created. If you do it similary, the problem is that automation is configured to be executed when Project is created, not updated.

Martin Bayer _MoroSystems_ s_r_o__
Community Champion
September 8, 2021

Sorry, I read it once again. You are creating an issue. So you need to use "Issue Created" trigger and it should work.

fictis September 8, 2021

I'm using Delegated project creator to create a new project.
And when I create project with custom project template, I set Project Category at this moment. See screenshot below.

TDelegated_project_creator_project_category.png

So using Delegated project creator could be the source of my problem ?

I dont use "Issue Created" because it doesn't work like I said in my first post. It's for why i used email for the moment to check if conditional works or not.

fictis September 8, 2021

I'm just trying with default Jira Create project process. And I have the same problem. Nothing enter in the conditional.

Martin Bayer _MoroSystems_ s_r_o__
Community Champion
September 8, 2021

Yeah, I think it is the issue, because project is created -> updated on the background in my opinion. You can try to contact vendor's support. Maybe some event is triggered during the Create Project action

Martin Bayer _MoroSystems_ s_r_o__
Community Champion
September 8, 2021

Sorry, replying to your last post... Condition won't work because project category is empty for created project... I guess you try to use the same automation, right?

fictis September 8, 2021

Yes and you are right, the project category is empty by using Jira Create project.
It for why I think my predecessor used Delegated project creator to set Project category for new custom project.

0 votes
Hana Kučerová
Community Champion
September 8, 2021

Hi @fictis ,

according to this project category should be available. Please have you tried:

{{issue.fields.project.projectCategory.name}}
fictis September 8, 2021

Yes I tried it but it doesn't enter in conditional.

I share you a screenshot of my rule to check if I made a error.

Automation.png

Suggest an answer

Log in or Sign up to answer